Top Description Constructors Methods
org.jboss.marshalling

public abstract Class AbstractMarshallerFactory

extends Object
implements MarshallerFactory
Class Inheritance
All Implemented Interfaces
org.jboss.marshalling.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

AccessConstructor and Description
protected
AbstractMarshallerFactory()

Construct a new marshaller factory instance.

Method Summary

Modifier and TypeMethod and Description
protected int

Returns:

the default buffer size
getDefaultBufferSize
()

Get the default buffer size, which is used if none was configured.

protected ClassExternalizerFactory

Returns:

the class externalizer factory
getDefaultClassExternalizerFactory
()

Get the default class externalizer factory, which is used if none was configured.

protected ClassResolver

Returns:

the class resolver
getDefaultClassResolver
()

Get the default class resolver, which is used if none was configured.

protected ClassTable

Returns:

the class table
getDefaultClassTable
()

Get the default class table, which is used if none was configured.

protected ObjectResolver

Returns:

the object resolver
getDefaultObjectResolver
()

Get the default object resolver, which is used if none was configured.

protected ObjectTable

Returns:

the object table
getDefaultObjectTable
()

Get the default object, which is used if none was configured.

protected StreamHeader

Returns:

the stream header
getDefaultStreamHeader
()

Get the default stream header, which is used if none was configured.

protected int

Returns:

the default version to use
getDefaultVersion
()

Get the default version, which is used if none was configured.

protected int

Returns:

the minimum buffer size
getMinimumBufferSize
()

Get the minimum buffer size.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

AbstractMarshallerFactoryback to summary
protected AbstractMarshallerFactory()

Construct a new marshaller factory instance.

Method Detail

getDefaultBufferSizeback to summary
protected int getDefaultBufferSize()

Get the default buffer size, which is used if none was configured. This base implementation returns 512.

Returns:int

the default buffer size

getDefaultClassExternalizerFactoryback to summary
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:ClassExternalizerFactory

the class externalizer factory

getDefaultClassResolverback to summary
protected ClassResolver getDefaultClassResolver()

Get the default class resolver, which is used if none was configured. This base implementation returns a new ContextClassResolver instance.

Returns:ClassResolver

the class resolver

getDefaultClassTableback to summary
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:ClassTable

the class table

getDefaultObjectResolverback to summary
protected ObjectResolver getDefaultObjectResolver()

Get the default object resolver, which is used if none was configured. This base implementation returns an identity object resolver.

Returns:ObjectResolver

the object resolver

getDefaultObjectTableback to summary
protected ObjectTable getDefaultObjectTable()

Get the default object, which is used if none was configured. This base implementation returns a no-operation object table.

Returns:ObjectTable

the object table

getDefaultStreamHeaderback to summary
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:StreamHeader

the stream header

getDefaultVersionback to summary
protected int getDefaultVersion()

Get the default version, which is used if none was configured. This base implementation returns -1.

Returns:int

the default version to use

getMinimumBufferSizeback to summary
protected int getMinimumBufferSize()

Get the minimum buffer size. This base implementation returns 64.

Returns:int

the minimum buffer size