Interface ExternalizableHelper.XmlBeanClassCache

    • Method Detail

      • init

        void init​(XmlElement xml)
        Initialize the XmlBeanClassCache.
        Parameters:
        xml - the XML configuration for the cache
      • getClassId

        int getClassId​(Class clz)
        Look up the class ID for the specified class.
        Parameters:
        clz - the class to look up
        Returns:
        the ID if the class is known; otherwise -1
      • getClass

        Class getClass​(int nId,
                       ClassLoader loader)
        Look up the class for the specified ID.
        Parameters:
        nId - the class ID
        loader - the ClassLoader for the class to load
        Returns:
        the class for that class ID