Class DataClayClassLoader


  • public class DataClayClassLoader
    extends Object
    This class contains a set of loaded classes identified by its MetaClassID. Used in deserialization.
    • Field Detail

      • CLASSNAMES_CACHE

        public static final MemoryCache<MetaClassID,​String> CLASSNAMES_CACHE
        Cache of class names identified by its MetaClassID.
    • Constructor Detail

      • DataClayClassLoader

        protected DataClayClassLoader()
        Constructor
    • 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 get
        oid - 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