From: rk Date: Tue, 19 Feb 2002 17:59:21 +0000 (+0000) Subject: compilable snapshot of ObjectStore / day two X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=a21297fa550335810c07ec6e731e71d449e3d9b8;p=mir.git compilable snapshot of ObjectStore / day two --- diff --git a/source/mir/storage/store/ObjectStore.java b/source/mir/storage/store/ObjectStore.java index 26f2b5cf..e719aadc 100755 --- a/source/mir/storage/store/ObjectStore.java +++ b/source/mir/storage/store/ObjectStore.java @@ -36,8 +36,11 @@ public class ObjectStore { private static HashMap containerMap=new HashMap(); // StoreContainerType/StoreContainer private static Logfile storeLog; private static long storeHit=0,storeMiss=0; + private static Class storableObjectInterface; - private ObjectStore() { } + private ObjectStore() { + storableObjectInterface=StorableObject.class; + } public static ObjectStore getInstance() { return INSTANCE; } @@ -99,5 +102,19 @@ public class ObjectStore { return null; } + private boolean implementsStorableObject(Class aClass) { + boolean yesno=false; + if (aClass!=null) { + Class[] interfaces = aClass.getInterfaces(); + if (interfaces.length>0) { + for (int i=0;i