Mercurial > hg > RemoteEditor > REPSessionManager
view rep/simulator/REPSelector.java @ 123:5b1a0574b406 add-simulator
*** empty log message ***
author | pin |
---|---|
date | Wed, 27 Aug 2008 17:21:25 +0900 |
parents | |
children |
line wrap: on
line source
package rep.simulator; import java.io.IOException; import java.nio.channels.Selector; public class REPSelector { private static boolean isSimulator; public static Selector open() throws IOException { if(isSimulator){ return SelectorSimulator.open(); }else{ return Selector.open(); } } public static void setSimulation(boolean b) { // TODO Auto-generated method stub isSimulator = false; } }