Class DataClayClassLoaderSrv
- java.lang.Object
-
- es.bsc.dataclay.util.classloaders.DataClayClassLoaderSrv
-
public final class DataClayClassLoaderSrv 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 ClassLoader
execEnvironmentClassLoader
Cache of class loaders .static ClassLockers
LOCKERS
Map of lockers for classes.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
cleanCaches()
Clean cache of class loaders.static Class<?>
getClass(MetaClassID classID)
Get the class with name and namespace providedstatic Class<?>
getClass(String fullClassName)
Get the class with name providedstatic DataClayObject
newInstance(MetaClassID classID, ObjectID objectID)
Create an instance of the Class with ID providedstatic void
reloadClassLoader(String namespace)
Reload a class loader
-
-
-
Field Detail
-
LOCKERS
public static final ClassLockers LOCKERS
Map of lockers for classes.
-
execEnvironmentClassLoader
public static ClassLoader execEnvironmentClassLoader
Cache of class loaders .
-
-
Method Detail
-
newInstance
public static DataClayObject newInstance(MetaClassID classID, ObjectID objectID)
Create an instance of the Class with ID provided- Parameters:
classID
- ID of the class to getobjectID
- ID of the object to instantiate- Returns:
- The created instance
-
getClass
public static Class<?> getClass(String fullClassName)
Get the class with name provided- Parameters:
fullClassName
- Class name- Returns:
- The class
- Throws:
ClassNotFoundException
- if class was not found.
-
getClass
public static Class<?> getClass(MetaClassID classID)
Get the class with name and namespace provided- Parameters:
classID
- ID of the class- Returns:
- The class
-
reloadClassLoader
public static void reloadClassLoader(String namespace)
Reload a class loader- Parameters:
namespace
- Namespace of the class loader
-
cleanCaches
public static void cleanCaches()
Clean cache of class loaders.
-
-