Package org.jboss.marshalling
Class MarshallingConfiguration
java.lang.Object
org.jboss.marshalling.MarshallingConfiguration
- All Implemented Interfaces:
Cloneable
A Marshaller configuration.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private int
private ClassExternalizerFactory
private ClassResolver
private ClassTable
private Creator
private ExceptionListener
private Creator
private int
private ObjectResolver
private ObjectResolver
private ObjectTable
private SerializabilityChecker
private Creator
private StreamHeader
private int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Create a shallow clone.int
Get the configured buffer size.int
Get the estimated class count for this configuration.Get the class externalizer factory, ornull
if none is specified.Get the class resolver, ornull
if none is specified.Get the class table, ornull
if none is specified.Deprecated.no longer used in 1.4, will be removed in a future versionGet the exception listener to use.Deprecated.no longer used in 1.4, will be removed in 1.4int
Get the estimated instance count for this configuration.Get the object pre resolver, ornull
if none is specified.Get the object resolver, ornull
if none is specified.Get the object table, ornull
if none is specified.Get the serializability checker.Deprecated.no longer used in 1.4, will be removed in 1.4Get the stream header, ornull
if none is specified.int
Get the version to use, for protocols with multiple versions.void
setBufferSize
(int bufferSize) Set the configured buffer size.void
setClassCount
(int classCount) Set the estimated class count for this configuration.void
setClassExternalizerFactory
(ClassExternalizerFactory classExternalizerFactory) Set the class externalizer factory.void
setClassResolver
(ClassResolver classResolver) Set the class resolver, ornull
to use the default.void
setClassTable
(ClassTable classTable) Set the class table, ornull
to use none.void
setCreator
(Creator creator) Deprecated.no longer used in 1.4, will be removed in a future versionvoid
setExceptionListener
(ExceptionListener exceptionListener) Set the exception listener to use.void
setExternalizerCreator
(Creator externalizerCreator) Deprecated.no longer used in 1.4, will be removed in 1.4void
setInstanceCount
(int instanceCount) Set the estimated instance count for this configuration.void
setObjectPreResolver
(ObjectResolver objectPreResolver) Set the object pre resolver, ornull
to use none.void
setObjectResolver
(ObjectResolver objectResolver) Set the object resolver, ornull
to use none.void
setObjectTable
(ObjectTable objectTable) Set the object table, ornull
to use none.void
setSerializabilityChecker
(SerializabilityChecker serializabilityChecker) Set the serializability checker.void
setSerializedCreator
(Creator serializedCreator) Deprecated.no longer used in 1.4, will be removed in 1.4void
setStreamHeader
(StreamHeader streamHeader) Set the stream header.void
setVersion
(int version) Set the version to use, for protocols with multiple versions.toString()
-
Field Details
-
classExternalizerFactory
-
streamHeader
-
classResolver
-
objectResolver
-
creator
-
externalizerCreator
-
serializedCreator
-
classTable
-
objectTable
-
exceptionListener
-
serializabilityChecker
-
instanceCount
private int instanceCount -
classCount
private int classCount -
bufferSize
private int bufferSize -
version
private int version -
objectPreResolver
-
-
Constructor Details
-
MarshallingConfiguration
public MarshallingConfiguration()Construct a new instance.
-
-
Method Details
-
getClassExternalizerFactory
Get the class externalizer factory, ornull
if none is specified.- Returns:
- the class externalizer factory
-
setClassExternalizerFactory
Set the class externalizer factory. Specifynull
to use none.- Parameters:
classExternalizerFactory
- the class externalizer factory
-
getStreamHeader
Get the stream header, ornull
if none is specified.- Returns:
- the stream header
-
setStreamHeader
Set the stream header. Specifynull
to use none.- Parameters:
streamHeader
- the stream header
-
getClassResolver
Get the class resolver, ornull
if none is specified.- Returns:
- the class resolver
-
setClassResolver
Set the class resolver, ornull
to use the default.- Parameters:
classResolver
- the class resolver
-
getObjectResolver
Get the object resolver, ornull
if none is specified.- Returns:
- the object resolver
-
setObjectResolver
Set the object resolver, ornull
to use none.- Parameters:
objectResolver
- the object resolver
-
getCreator
Deprecated.no longer used in 1.4, will be removed in a future versionGet the object creator, ornull
if none is specified. Used only if a more specific creator type was not specified.- Returns:
- the object creator
-
setCreator
Deprecated.no longer used in 1.4, will be removed in a future versionSet the object creator, ornull
to use the default. Used only if a more specific creator type was not specified.- Parameters:
creator
- the object creator
-
getObjectPreResolver
Get the object pre resolver, ornull
if none is specified.- Returns:
- the object resolver
-
setObjectPreResolver
Set the object pre resolver, ornull
to use none. Invoked before user replacement and global object resolver- Parameters:
objectPreResolver
- the object resolver
-
getClassTable
Get the class table, ornull
if none is specified.- Returns:
- the class table
-
setClassTable
Set the class table, ornull
to use none.- Parameters:
classTable
- the class table
-
getObjectTable
Get the object table, ornull
if none is specified.- Returns:
- the object table
-
setObjectTable
Set the object table, ornull
to use none.- Parameters:
objectTable
- the object table
-
getInstanceCount
public int getInstanceCount()Get the estimated instance count for this configuration.- Returns:
- the instance count
-
setInstanceCount
public void setInstanceCount(int instanceCount) Set the estimated instance count for this configuration. The given value is used to pre-size certain internal tables in some implementations.- Parameters:
instanceCount
- the instance count
-
getClassCount
public int getClassCount()Get the estimated class count for this configuration.- Returns:
- the class count
-
setClassCount
public void setClassCount(int classCount) Set the estimated class count for this configuration. The given value is used to pre-size certain internal tables in some implementations.- Parameters:
classCount
- the class count
-
getBufferSize
public int getBufferSize()Get the configured buffer size.- Returns:
- the buffer size, in bytes
-
setBufferSize
public void setBufferSize(int bufferSize) Set the configured buffer size. Some implementations will use this value to set the size of internal read/write buffers.- Parameters:
bufferSize
- the buffer size, in bytes
-
getVersion
public int getVersion()Get the version to use, for protocols with multiple versions.- Returns:
- the version to use
-
setVersion
public void setVersion(int version) Set the version to use, for protocols with multiple versions.- Parameters:
version
- the version to use
-
getExceptionListener
Get the exception listener to use.- Returns:
- the exception listener
-
setExceptionListener
Set the exception listener to use.- Parameters:
exceptionListener
- the exception listener
-
getExternalizerCreator
Deprecated.no longer used in 1.4, will be removed in 1.4Get the creator to use for externalized objects. If none was configured, returns the result ofgetCreator()
.- Returns:
- the creator
-
setExternalizerCreator
Deprecated.no longer used in 1.4, will be removed in 1.4Set the creator to use for externalized objects.- Parameters:
externalizerCreator
- the creator
-
getSerializedCreator
Deprecated.no longer used in 1.4, will be removed in 1.4Get the creator to use for serialized objects. If none was configured, returns the result ofgetCreator()
.- Returns:
- the creator
-
setSerializedCreator
Deprecated.no longer used in 1.4, will be removed in 1.4Set the creator to use for serialized objects.- Parameters:
serializedCreator
- the creator
-
getSerializabilityChecker
Get the serializability checker.- Returns:
- the serializability checker
-
setSerializabilityChecker
Set the serializability checker.- Parameters:
serializabilityChecker
- the new serializability checker
-
clone
Create a shallow clone. -
toString
-