Class DataClayClassLoaderSrv


  • public final class DataClayClassLoaderSrv
    extends Object
    This class contains a set of loaded classes identified by its MetaClassID. Used in deserialization.
    • 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 get
        objectID - 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.