- Timestamp:
- 06/26/13 13:27:31 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
java/main/src/main/java/com/framsticks/hosting/ServerInstance.java
r85 r86 3 3 import com.framsticks.core.*; 4 4 import com.framsticks.params.CompositeParam; 5 import com.framsticks.params.ConstructionException; 5 6 import com.framsticks.params.FramsClass; 7 import com.framsticks.params.FramsClassBuilder; 6 8 import com.framsticks.params.Param; 7 9 import com.framsticks.core.LocalInstance; … … 42 44 hosted.setName("hosted"); 43 45 hosted.configure(hostedConfig); 44 root = new Node((CompositeParam) Param.build().name("root").id("root").type("o" + hosted.getClass().getCanonicalName()).finish(), hosted);46 root = new Node((CompositeParam) Param.build().name("root").id("root").type("o" + hosted.getClass().getCanonicalName()).finish(), hosted); 45 47 } 46 48 … … 57 59 try { 58 60 Class<?> nativeClass = Class.forName(id); 59 FramsClass framsClass = new FramsClass.Constructor(nativeClass, id).getResult(); 61 FramsClass framsClass = FramsClassBuilder.buildForClass(nativeClass); 62 63 if (!framsClass.getId().equals(id)) { 64 log.error("no matching id"); 65 return null; 66 } 60 67 61 68 registry.registerReflectedClass(null, id, nativeClass); … … 63 70 return framsClass; 64 71 } catch (ClassNotFoundException ignored) { 72 } catch (ConstructionException e) { 73 log.error("failed to use info from cache: " + e); 65 74 } 66 75
Note: See TracChangeset
for help on using the changeset viewer.