Package org.jboss.marshalling.cloner
Class CloneableCloner
java.lang.Object
org.jboss.marshalling.cloner.CloneableCloner
- All Implemented Interfaces:
ObjectCloner
An object cloner which clones objects that implement
Cloneable
.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Method
private final IdentityHashMap
<Object, Object> private final CloneTable
Fields inherited from interface org.jboss.marshalling.cloner.ObjectCloner
IDENTITY
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
cloneTable
-
CLONE
-
clones
-
-
Constructor Details
-
CloneableCloner
CloneableCloner(ClonerConfiguration configuration) Create a new instance.- Parameters:
configuration
- the configuration
-
-
Method Details
-
reset
public void reset()Clear the cloner state and any caches.- Specified by:
reset
in interfaceObjectCloner
-
clone
Create a deep clone of the given object.- Specified by:
clone
in interfaceObjectCloner
- Parameters:
orig
- the original object- Returns:
- the deep clone
- Throws:
IOException
- if a serialization error occursClassNotFoundException
- if a class cannot be loaded during the cloning process
-