java.lang.Object
org.jboss.marshalling.AbstractMarshallerFactory
- All Implemented Interfaces:
MarshallerFactory
An abstract implementation of the
MarshallerFactory 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
ConstructorsModifierConstructorDescriptionprotectedConstruct a new marshaller factory instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected intGet the default buffer size, which is used if none was configured.protected ClassExternalizerFactoryGet the default class externalizer factory, which is used if none was configured.protected ClassResolverGet the default class resolver, which is used if none was configured.protected ClassTableGet the default class table, which is used if none was configured.protected ObjectResolverGet the default object resolver, which is used if none was configured.protected ObjectTableGet the default object, which is used if none was configured.protected StreamHeaderGet the default stream header, which is used if none was configured.protected intGet the default version, which is used if none was configured.protected intGet the minimum buffer size.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jboss.marshalling.MarshallerFactory
createMarshaller, createUnmarshaller
-
Constructor Details
-
AbstractMarshallerFactory
protected AbstractMarshallerFactory()Construct a new marshaller factory instance.
-
-
Method Details
-
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
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
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
Get the default class resolver, which is used if none was configured. This base implementation returns a newContextClassResolverinstance.- Returns:
- the class resolver
-
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
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
-