Marshalling API version 1.0.0.GA

org.jboss.marshalling
Class AbstractMarshallerFactory

java.lang.Object
  extended by org.jboss.marshalling.AbstractMarshallerFactory
All Implemented Interfaces:
MarshallerFactory
Direct Known Subclasses:
JavaSerializationMarshallerFactory, RiverMarshallerFactory

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  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 getDefaultCreator()
          Get the default object creator, which is used if none was configured.
protected  ExternalizerFactory getDefaultExternalizerFactory()
          Get the default externalizer factory, 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.
 
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

getDefaultExternalizerFactory

protected ExternalizerFactory getDefaultExternalizerFactory()
Get the default externalizer factory, which is used if none was configured. This base implementation returns a no-operation externalizer factory.

Returns:
the 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

getDefaultCreator

protected Creator getDefaultCreator()
Get the default 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

Marshalling API version 1.0.0.GA

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