Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


com.tangosol.io
Class ConfigurableSerializerFactory

java.lang.Object
  extended by com.tangosol.io.ConfigurableSerializerFactory

All Implemented Interfaces:
SerializerFactory, XmlConfigurable

public class ConfigurableSerializerFactory
extends java.lang.Object
implements SerializerFactory, XmlConfigurable

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?)>
 
Since:
Coherence 3.7
Author:
lh/jh 2010.11.30

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.
 java.lang.String toString()
          

 

Constructor Detail

ConfigurableSerializerFactory

public ConfigurableSerializerFactory()

Method Detail

createSerializer

public Serializer createSerializer(java.lang.ClassLoader loader)
Create a new Serializer.

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.

Specified by:
createSerializer in interface SerializerFactory
Parameters:
loader - the optional ClassLoader with which to configure the new Serializer.
Returns:
the new Serializer

setConfig

public void setConfig(XmlElement xml)
Specify the configuration for the object.
Specified by:
setConfig in interface XmlConfigurable
Parameters:
xml - the XML configuration for the object

getConfig

public XmlElement getConfig()
Determine the current configuration of the object.
Specified by:
getConfig in interface XmlConfigurable
Returns:
the XML configuration or null

toString

public java.lang.String toString()

Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


Copyright © 2000, 2014, Oracle and/or its affiliates. All rights reserved.