- Timestamp:
- 07/02/13 16:20:07 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
java/main/src/main/java/com/framsticks/hosting/ServerInstance.java
r88 r90 16 16 * @author Piotr Sniegowski 17 17 */ 18 public class ServerInstance extends LocalInstance implements JoinableParent {18 public abstract class ServerInstance extends LocalInstance implements JoinableParent { 19 19 20 20 private final static Logger log = Logger.getLogger(ServerInstance.class.getName()); … … 23 23 24 24 public ServerInstance() { 25 }26 27 @Override28 protected void firstTask() {29 super.firstTask();30 assert hosted != null;31 Dispatching.use(hosted, this);32 25 } 33 26 … … 53 46 return null; 54 47 } 55 FramsClass cached = registry.get InfoFromCache(id);48 FramsClass cached = registry.getFramsClass(id); 56 49 if (cached != null) { 57 50 return cached; … … 67 60 68 61 registry.registerReflectedClass(null, id, nativeClass); 69 registry.put InfoIntoCache(framsClass);62 registry.putFramsClass(framsClass); 70 63 return framsClass; 71 64 } catch (ClassNotFoundException ignored) { … … 98 91 public void childChangedState(Joinable joinable, JoinableState state) { 99 92 proceedToState(state); 93 } 100 94 95 @Override 96 protected void joinableStart() { 97 super.joinableStart(); 98 assert hosted != null; 99 Dispatching.use(hosted, this); 101 100 } 102 101 103 102 @Override 104 103 protected void joinableInterrupt() { 104 super.joinableInterrupt(); 105 105 Dispatching.drop(hosted, this); 106 106 } 107 107 108 108 @Override 109 protected void joinableFinish() { 110 109 protected void joinableJoin() throws InterruptedException { 110 Dispatching.join(hosted); 111 super.joinableJoin(); 111 112 } 112 113
Note: See TracChangeset
for help on using the changeset viewer.