Oracle® Coherence Java API Reference
v3.5.3

E15583-01

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
 java.lang.Class getClass(int nId, java.lang.ClassLoader loader)
          Look up the class for the specified ID.
 int getClassId(java.lang.Class clz)
          Look up the class ID for the specified class.
 void init(XmlElement xml)
          Initialize the XmlBeanClassCache.
 

Method Detail

init

void init(XmlElement xml)
Initialize the XmlBeanClassCache.

Parameters:
xml - the XML configuration for the cache

getClassId

int getClassId(java.lang.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

java.lang.Class getClass(int nId,
                         java.lang.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

Oracle® Coherence Java API Reference
v3.5.3

E15583-01

Copyright © 2000, 2010, Oracle. All rights reserved.