|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.tangosol.io.ConfigurableSerializerFactory
public class ConfigurableSerializerFactory
A SerializerFactory
implementation that creates instances of a Serializer class configured using an XmlElement of the following structure:
<!ELEMENT instance ((class-name | (class-factory-name, method-name), init-params?)> <!ELEMENT init-params (init-param*)> <!ELEMENT init-param ((param-name | param-type), param-value, description?)>
Constructor Summary | |
---|---|
ConfigurableSerializerFactory() |
Method Summary | |
---|---|
Serializer |
createSerializer(java.lang.ClassLoader loader) Create a new Serializer. |
XmlElement |
getConfig() Determine the current configuration of the object. |
void |
setConfig(XmlElement xml) Specify the configuration for the object. |
Constructor Detail |
---|
public ConfigurableSerializerFactory()
Method Detail |
---|
public Serializer createSerializer(java.lang.ClassLoader loader)
If the new Serializer is an instance of ClassLoaderAware
and the specified ClassLoader is non-null, the new Serializer will be configured with the ClassLoader before it is returned to the caller.
createSerializer
in interface SerializerFactory
loader
- the optional ClassLoader with which to configure the new Serializer.public void setConfig(XmlElement xml)
setConfig
in interface XmlConfigurable
xml
- the XML configuration for the objectpublic XmlElement getConfig()
getConfig
in interface XmlConfigurable
|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |