Package org.jboss.marshalling
Class AbstractMarshallerFactory
- java.lang.Object
-
- org.jboss.marshalling.AbstractMarshallerFactory
-
- All Implemented Interfaces:
MarshallerFactory
public abstract class AbstractMarshallerFactory extends Object implements MarshallerFactory
An abstract implementation of theMarshallerFactory
interface. This instance can be configured at any time; however any marshallers and unmarshallers produced will have a configuration based on a snapshot of the values of this instance's configuration.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractMarshallerFactory()
Construct a new marshaller factory instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
getDefaultBufferSize()
Get the default buffer size, which is used if none was configured.protected ClassExternalizerFactory
getDefaultClassExternalizerFactory()
Get the default class externalizer factory, which is used if none was configured.protected ClassResolver
getDefaultClassResolver()
Get the default class resolver, which is used if none was configured.protected ClassTable
getDefaultClassTable()
Get the default class table, which is used if none was configured.protected ObjectResolver
getDefaultObjectResolver()
Get the default object resolver, which is used if none was configured.protected ObjectTable
getDefaultObjectTable()
Get the default object, which is used if none was configured.protected StreamHeader
getDefaultStreamHeader()
Get the default stream header, which is used if none was configured.protected int
getDefaultVersion()
Get the default version, which is used if none was configured.protected int
getMinimumBufferSize()
Get the minimum buffer size.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jboss.marshalling.MarshallerFactory
createMarshaller, createUnmarshaller
-
-
-
-
Method Detail
-
getDefaultClassExternalizerFactory
protected ClassExternalizerFactory getDefaultClassExternalizerFactory()
Get the default class externalizer factory, which is used if none was configured. This base implementation returns a no-operation class externalizer factory.- Returns:
- the class externalizer factory
-
getDefaultStreamHeader
protected StreamHeader getDefaultStreamHeader()
Get the default stream header, which is used if none was configured. This base implementation returns a no-operation stream header (writes and reads no bytes).- Returns:
- the stream header
-
getDefaultObjectResolver
protected ObjectResolver getDefaultObjectResolver()
Get the default object resolver, which is used if none was configured. This base implementation returns an identity object resolver.- Returns:
- the object resolver
-
getDefaultClassResolver
protected ClassResolver getDefaultClassResolver()
Get the default class resolver, which is used if none was configured. This base implementation returns a newContextClassResolver
instance.- Returns:
- the class resolver
-
getDefaultClassTable
protected ClassTable getDefaultClassTable()
Get the default class table, which is used if none was configured. This base implementation returns a no-operation class table.- Returns:
- the class table
-
getDefaultObjectTable
protected ObjectTable getDefaultObjectTable()
Get the default object, which is used if none was configured. This base implementation returns a no-operation object table.- Returns:
- the object table
-
getDefaultVersion
protected int getDefaultVersion()
Get the default version, which is used if none was configured. This base implementation returns -1.- Returns:
- the default version to use
-
getDefaultBufferSize
protected int getDefaultBufferSize()
Get the default buffer size, which is used if none was configured. This base implementation returns 512.- Returns:
- the default buffer size
-
getMinimumBufferSize
protected int getMinimumBufferSize()
Get the minimum buffer size. This base implementation returns 64.- Returns:
- the minimum buffer size
-
-