Class DataClayClassLoader
- java.lang.Object
-
- es.bsc.dataclay.util.classloaders.DataClayClassLoader
-
public class DataClayClassLoader extends Object
This class contains a set of loaded classes identified by its MetaClassID. Used in deserialization.
-
-
Field Summary
Fields Modifier and Type Field Description static MemoryCache<MetaClassID,String>CLASSNAMES_CACHECache of class names identified by its MetaClassID.
-
Constructor Summary
Constructors Modifier Constructor Description protectedDataClayClassLoader()Constructor
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Class<?>getClass(MetaClassID classID)Get the Class with ID providedstatic Class<?>getClass(String className)Get the Class with name providedstatic DataClayObjectnewInstance(MetaClassID classID, ObjectID oid)Create an instance of the Class with ID provided and Object ID provided
-
-
-
Field Detail
-
CLASSNAMES_CACHE
public static final MemoryCache<MetaClassID,String> CLASSNAMES_CACHE
Cache of class names identified by its MetaClassID.
-
-
Method Detail
-
newInstance
public static DataClayObject newInstance(MetaClassID classID, ObjectID oid)
Create an instance of the Class with ID provided and Object ID provided- Parameters:
classID- ID of the class to getoid- OID- Returns:
- The created instance
-
getClass
public static Class<?> getClass(String className)
Get the Class with name provided- Parameters:
className- Name of the class to get- Returns:
- The class
-
getClass
public static Class<?> getClass(MetaClassID classID)
Get the Class with ID provided- Parameters:
classID- ID of the class to get- Returns:
- The class
-
-