Package com.tangosol.util
Interface ExternalizableHelper.XmlBeanClassCache
- All Known Implementing Classes:
ExternalizableHelper.SimpleXmlBeanClassCache
- Enclosing class:
- ExternalizableHelper
public static interface ExternalizableHelper.XmlBeanClassCache
An interface for caching class reference by integer ID values.
-
Method Summary
Modifier and TypeMethodDescriptiongetClass(int nId, ClassLoader loader) Look up the class for the specified ID.intgetClassId(Class clz) Look up the class ID for the specified class.voidinit(XmlElement xml) Initialize the XmlBeanClassCache.
-
Method Details
-
init
Initialize the XmlBeanClassCache.- Parameters:
xml- the XML configuration for the cache
-
getClassId
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
Look up the class for the specified ID.- Parameters:
nId- the class IDloader- the ClassLoader for the class to load- Returns:
- the class for that class ID
-