|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jsefa.xml.XmlIOFactory
public abstract class XmlIOFactory
Factory for creating XmlSerializers and XmlDeserializers.
This is the abstract base class for concrete factories. Each subclass must provide a static method
create(XmlConfiguration config) as well as implement the abstract methods.
This class provides a static factory method createFactory(XmlConfiguration) to create an instance of a
concrete XmlIOFactory.
This class also provides static facade methods hiding the details of creating entry points based on annotated object types.
| Constructor Summary | |
|---|---|
XmlIOFactory()
|
|
| Method Summary | |
|---|---|
abstract XmlDeserializer |
createDeserializer()
Creates a new Deserializer. |
static XmlIOFactory |
createFactory(Class<?>... objectTypes)
Creates a new XmlIOFactory for XmlSerializers and
XmlDeserializers which can handle objects of the given object types. |
static XmlIOFactory |
createFactory(XmlConfiguration config)
Creates a new XmlIOFactory for XmlSerializers and
XmlDeserializers using the given configuration. |
static XmlIOFactory |
createFactory(XmlConfiguration config,
Class<?>... objectTypes)
Creates a new XmlIOFactory for XmlSerializers and
XmlDeserializers which can handle objects of the given object types as well as those object
types for which entry points are defined in the config. |
abstract XmlSerializer |
createSerializer()
Creates a new Serializer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XmlIOFactory()
| Method Detail |
|---|
public static XmlIOFactory createFactory(XmlConfiguration config)
XmlIOFactory for XmlSerializers and
XmlDeserializers using the given configuration.
Note that the configuration should provide a non empty collection of entry points.
You can use the methods createFactory(Class...) or
createFactory(XmlConfiguration, Class...) if you want to get the entry points automatically created
from annotated classes.
config - the configuration object. It will be copied so that the given one can be modified or reused.
XmlIOFactory factory
IOFactoryExceptionpublic static XmlIOFactory createFactory(Class<?>... objectTypes)
XmlIOFactory for XmlSerializers and
XmlDeserializers which can handle objects of the given object types.
It creates a new XmlConfiguration with entry points generated from the annotations found in the
given object types.
objectTypes - object types for which entry points should be created from annotations
XmlIOFactory factory
IOFactoryException
public static XmlIOFactory createFactory(XmlConfiguration config,
Class<?>... objectTypes)
XmlIOFactory for XmlSerializers and
XmlDeserializers which can handle objects of the given object types as well as those object
types for which entry points are defined in the config.
config - the configuration object. It will be copied so that the given one can be modified or reused.objectTypes - object types for which entry points should be created from annotations
XmlIOFactory factory
IOFactoryExceptionpublic abstract XmlSerializer createSerializer()
Serializer.
createSerializer in interface IOFactorySerializerpublic abstract XmlDeserializer createDeserializer()
Deserializer.
createDeserializer in interface IOFactoryDeserializer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||