@Deprecated public class ConfigurableSerializerFactory extends Object implements SerializerFactory, XmlConfigurable
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?)>
This class has now been deprecated and replaced with a ParameterizedBuilder that produces a SerializerFactory.
SerializerFactoryProcessor| Constructor and Description |
|---|
ConfigurableSerializerFactory()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
Serializer |
createSerializer(ClassLoader loader)
Deprecated.
Create a new Serializer.
|
XmlElement |
getConfig()
Deprecated.
Determine the current configuration of the object.
|
void |
setConfig(XmlElement xml)
Deprecated.
Specify the configuration for the object.
|
String |
toString()
Deprecated.
|
public Serializer createSerializer(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 SerializerFactoryloader - the optional ClassLoader with which to configure the new Serializer.public void setConfig(XmlElement xml)
setConfig in interface XmlConfigurablexml - the XML configuration for the objectpublic XmlElement getConfig()
getConfig in interface XmlConfigurable