JBoss Marshalling 1.4.3.Final

org.jboss.marshalling.cloner
Class ClonerConfiguration

java.lang.Object
  extended by org.jboss.marshalling.cloner.ClonerConfiguration
All Implemented Interfaces:
Cloneable

public final class ClonerConfiguration
extends Object
implements Cloneable

The configuration for a cloner instance.


Constructor Summary
ClonerConfiguration()
           
 
Method Summary
 ClonerConfiguration clone()
          Create a copy of this configuration.
 int getBufferSize()
          Get the buffer size to use.
 ClassCloner getClassCloner()
          Get the class cloner.
 CloneTable getCloneTable()
          Get the clone table.
 Creator getExternalizedCreator()
          Get the creator to use for externalizable objects.
 ObjectResolver getObjectPreResolver()
          Get the object pre resolver, or null if none is specified.
 ObjectResolver getObjectResolver()
          Get the object resolver.
 SerializabilityChecker getSerializabilityChecker()
          Get the serializability checker.
 Creator getSerializedCreator()
          Get the creator to use for serialized objects.
 void setBufferSize(int bufferSize)
          Set the buffer size to use.
 void setClassCloner(ClassCloner classCloner)
          Set the class cloner.
 void setCloneTable(CloneTable cloneTable)
          Set the clone table.
 void setExternalizedCreator(Creator externalizedCreator)
          Set the creator to use for externalizable objects.
 void setObjectPreResolver(ObjectResolver objectPreResolver)
          Set the object pre resolver, or null to use none.
 void setObjectResolver(ObjectResolver objectResolver)
          Set the object resolver.
 void setSerializabilityChecker(SerializabilityChecker serializabilityChecker)
          Set the serializability checker.
 void setSerializedCreator(Creator serializedCreator)
          Set the creator to use for serialized objects.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClonerConfiguration

public ClonerConfiguration()
Method Detail

clone

public ClonerConfiguration clone()
Create a copy of this configuration.

Overrides:
clone in class Object
Returns:
the copy

getCloneTable

public CloneTable getCloneTable()
Get the clone table. This can be used to intercede in the cloning process to choose specific existing instances or a cloning strategy depending on the source object.

Returns:
the clone table

setCloneTable

public void setCloneTable(CloneTable cloneTable)
Set the clone table.

Parameters:
cloneTable - the clone table
See Also:
getCloneTable()

getObjectResolver

public ObjectResolver getObjectResolver()
Get the object resolver. The object resolver can be used to perform object substitution before and after cloning.

Returns:
the object resolver

setObjectResolver

public void setObjectResolver(ObjectResolver objectResolver)
Set the object resolver.

Parameters:
objectResolver - the object resolver
See Also:
getObjectResolver()

getObjectPreResolver

public ObjectResolver getObjectPreResolver()
Get the object pre resolver, or null if none is specified.

Returns:
the object resolver

setObjectPreResolver

public void setObjectPreResolver(ObjectResolver objectPreResolver)
Set the object pre resolver, or null to use none. Invoked before user replacement and global object resolver

Parameters:
objectResolver - the object resolver

getClassCloner

public ClassCloner getClassCloner()
Get the class cloner. This is used by the serializing cloner to implement a strategy for mapping classes from one "side" of the cloner to the other.

Returns:
the class cloner

setClassCloner

public void setClassCloner(ClassCloner classCloner)
Set the class cloner.

Parameters:
classCloner - the class cloner
See Also:
getClassCloner()

getSerializabilityChecker

public SerializabilityChecker getSerializabilityChecker()
Get the serializability checker. This is used by the serializing cloner to determine whether a class may be considered serializable (and thus cloneable). By default, the standard serializability checker is used.

Returns:
the serializability checker
See Also:
SerializabilityChecker.DEFAULT

setSerializabilityChecker

public void setSerializabilityChecker(SerializabilityChecker serializabilityChecker)
Set the serializability checker.

Parameters:
serializabilityChecker - the serializability checker
See Also:
getSerializabilityChecker()

getExternalizedCreator

public Creator getExternalizedCreator()
Get the creator to use for externalizable objects. This is used by the serializing cloner.

Returns:
the creator to use for externalizable objects
See Also:
PublicReflectiveCreator

setExternalizedCreator

public void setExternalizedCreator(Creator externalizedCreator)
Set the creator to use for externalizable objects.

Parameters:
externalizedCreator - the creator to use for externalizable objects
See Also:
getExternalizedCreator()

getSerializedCreator

public Creator getSerializedCreator()
Get the creator to use for serialized objects. This is used by the serializing cloner.

Returns:
the creator to use for serialized objects
See Also:
SunReflectiveCreator

setSerializedCreator

public void setSerializedCreator(Creator serializedCreator)
Set the creator to use for serialized objects.

Parameters:
serializedCreator - the creator to use for serialized objects

getBufferSize

public int getBufferSize()
Get the buffer size to use. This is used by the serializing cloner.

Returns:
the buffer size to use

setBufferSize

public void setBufferSize(int bufferSize)
Set the buffer size to use.

Parameters:
bufferSize - the buffer size to use
See Also:
getBufferSize()

JBoss Marshalling 1.4.3.Final

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