org.glassfish.pfl.dynamic.copyobject.impl
Class ObjectCopierImpl

java.lang.Object
  extended by org.glassfish.pfl.dynamic.copyobject.impl.ObjectCopierImpl
All Implemented Interfaces:
ObjectCopier

public class ObjectCopierImpl
extends Object
implements ObjectCopier

Class used to deep copy arbitrary data. A single ObjectCopierImpl instance will preserve all object aliasing across multiple calls to copy.


Constructor Summary
ObjectCopierImpl()
           
 
Method Summary
 Object copy(Object obj)
          Return a deep copy of obj.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectCopierImpl

public ObjectCopierImpl()
Method Detail

copy

public Object copy(Object obj)
            throws ReflectiveCopyException
Return a deep copy of obj. Aliasing is preserved within obj and between objects passed in multiple calls to the same instance of ReflectObjectCopierImpl.

Specified by:
copy in interface ObjectCopier
Throws:
ReflectiveCopyException


Copyright © 2013 Oracle. All Rights Reserved.