|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tangosol.io.pof.ConfigurablePofContext
com.tangosol.io.pof.SafeConfigurablePofContext
public class SafeConfigurablePofContext
ConfigurablePofContext extension that can serialize and deserialize any valid POF user type, even those that have not been explicitly configured.
POF user types that have not been registered with this PofContext will be treated asSafeConfigurablePofContext.SafePofHolder
objects. For user types that have been
explicitly configured, the SafeConfigurablePofContext behaves identical to
the ConfigurablePofContext.
Nested Class Summary | |
---|---|
static class |
SafeConfigurablePofContext.SafePofHolder
A SafePofHolder represents the serialized form of any valid POF user type instance. |
Nested classes/interfaces inherited from class com.tangosol.io.pof.ConfigurablePofContext |
---|
ConfigurablePofContext.PofConfig |
Field Summary |
---|
Fields inherited from class com.tangosol.io.pof.ConfigurablePofContext |
---|
DEFAULT_RESOURCE, PROPERTY_CONFIG |
Constructor Summary | |
---|---|
SafeConfigurablePofContext()
Default constructor. |
|
SafeConfigurablePofContext(String sLocator)
Create a SafeConfigurablePofContext that will load configuration information from the specified locator. |
|
SafeConfigurablePofContext(XmlElement xml)
Create a SafeConfigurablePofContext that will use the passed configuration information. |
Method Summary | |
---|---|
Class |
getClass(int nTypeId)
Determine the class associated with the given user type identifier. |
PofSerializer |
getPofSerializer(int nTypeId)
Return a PofSerializer that can be used to serialize and deserialize an object of the specified user type to and from a POF stream. |
int |
getUserTypeIdentifier(Class clz)
Determine the user type identifier associated with the given class. |
int |
getUserTypeIdentifier(Object o)
Determine the user type identifier associated with the given object. |
int |
getUserTypeIdentifier(String sClass)
Determine the user type identifier associated with the given class name. |
boolean |
isUserType(Class clz)
Determine if the given class is a user type known to this PofContext. |
boolean |
isUserType(Object o)
Determine if the given object is of a user type known to this PofContext. |
boolean |
isUserType(String sClass)
Determine if the class with the given name is a user type known to this PofContext. |
Methods inherited from class com.tangosol.io.pof.ConfigurablePofContext |
---|
checkNotInitialized, createPofConfig, deserialize, ensureInitialized, getClassName, getConfig, getConfigLocation, getContextClassLoader, getPofConfig, getUserTypeIdentifierInternal, getUserTypeIdentifierInternal, initialize, isInitialized, isInterfaceAllowed, isSubclassAllowed, loadClass, loadResource, report, serialize, setConfig, setContextClassLoader |
Constructor Detail |
---|
public SafeConfigurablePofContext()
ConfigurablePofContext.DEFAULT_RESOURCE
.
public SafeConfigurablePofContext(String sLocator)
sLocator
- the locator that specifies the location of the
PofContext configuration file; the locator is either
a valid path or a URLpublic SafeConfigurablePofContext(XmlElement xml)
xml
- an XmlElement containing information in the format of a
configuration file used by SafeConfigurablePofContextMethod Detail |
---|
public PofSerializer getPofSerializer(int nTypeId)
getPofSerializer
in interface PofContext
getPofSerializer
in class ConfigurablePofContext
nTypeId
- the type identifier of the user type that can be
serialized and deserialized using the returned
PofSerializer; must be non-negative
public int getUserTypeIdentifier(Object o)
getUserTypeIdentifier
in interface PofContext
getUserTypeIdentifier
in class ConfigurablePofContext
o
- an instance of a user type; must not be null
public int getUserTypeIdentifier(Class clz)
getUserTypeIdentifier
in interface PofContext
getUserTypeIdentifier
in class ConfigurablePofContext
clz
- a user type class; must not be null
public int getUserTypeIdentifier(String sClass)
getUserTypeIdentifier
in interface PofContext
getUserTypeIdentifier
in class ConfigurablePofContext
sClass
- the name of a user type class; must not be null
public Class getClass(int nTypeId)
getClass
in interface PofContext
getClass
in class ConfigurablePofContext
nTypeId
- the user type identifier; must be non-negative
public boolean isUserType(Object o)
isUserType
in interface PofContext
isUserType
in class ConfigurablePofContext
o
- the object to test; must not be null
public boolean isUserType(Class clz)
isUserType
in interface PofContext
isUserType
in class ConfigurablePofContext
clz
- the class to test; must not be null
public boolean isUserType(String sClass)
isUserType
in interface PofContext
isUserType
in class ConfigurablePofContext
sClass
- the name of the class to test; must not be null
|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |