JBoss Marshalling 1.3.0.CR9

org.jboss.marshalling
Class AbstractMarshallerFactory

java.lang.Object
  extended by org.jboss.marshalling.AbstractMarshallerFactory
All Implemented Interfaces:
MarshallerFactory

public abstract class AbstractMarshallerFactory
extends Object
implements 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
protected AbstractMarshallerFactory()
          Construct a new marshaller factory instance.
 
Method Summary
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  Creator getDefaultExternalizedCreator()
          Get the default externalizable object creator, 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  Creator getDefaultSerializedCreator()
          Get the default serializable object creator, 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
 

Constructor Detail

AbstractMarshallerFactory

protected AbstractMarshallerFactory()
Construct a new marshaller factory instance.

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 new ContextClassResolver instance.

Returns:
the class resolver

getDefaultSerializedCreator

protected Creator getDefaultSerializedCreator()
Get the default serializable object creator, which is used if none was configured. This base implementation returns a simple reflective creator.

Returns:
the creator

getDefaultExternalizedCreator

protected Creator getDefaultExternalizedCreator()
Get the default externalizable object creator, which is used if none was configured. This base implementation returns a simple reflective creator.

Returns:
the creator

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

JBoss Marshalling 1.3.0.CR9

Copyright © 2011 JBoss, a division of Red Hat, Inc.