Package org.jboss.marshalling.cloner
Interface ObjectCloner
- All Known Implementing Classes:
CloneableCloner
,SerializingCloner
public interface ObjectCloner
An object cloner. Creates a (possibly deep) clone of an object. Unlike Marshallers and Unmarshallers, ObjectCloners
are thread-safe and can be used to clone object graphs concurrently.
-
Field Summary
Fields -
Method Summary
-
Field Details
-
IDENTITY
The identity object cloner. Always returns the same object it is given.
-
-
Method Details
-
reset
void reset()Clear the cloner state and any caches. -
clone
Create a deep clone of the given object.- 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
-