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 Methodprivate final IdentityHashMap<Object, Object> private final CloneTableFields inherited from interface 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:
resetin interfaceObjectCloner
-
clone
Create a deep clone of the given object.- Specified by:
clonein 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
-