1 9 package j2mex.realtime; 10 11 14 public class MemoryArea { 15 16 static final MemoryArea DEFAULT = new MemoryArea(); 17 18 private MemoryArea() { 19 } 20 21 public static MemoryArea getMemoryArea(Object object) { 22 return DEFAULT; 23 } 24 25 26 public void executeInArea(Runnable logic) { 27 logic.run(); 28 } 29 30 public Object newInstance(Class type) throws InstantiationException , 31 IllegalAccessException { 32 return type.newInstance(); 33 } 34 35 } | Popular Tags |