Top Description Methods
org.glassfish.pfl.dynamic.copyobject.spi

public Interface ObjectCopier

Known Direct Implementers
org.glassfish.pfl.dynamic.copyobject.impl.FallbackObjectCopierImpl, org.glassfish.pfl.dynamic.copyobject.impl.JavaStreamObjectCopierImpl, org.glassfish.pfl.dynamic.copyobject.impl.ObjectCopierImpl

Provides an interface for a variety of means to copy an arbitrary object. Any implementation of this interface must return an exact copy of obj, preserving all aliasing across all objects reachable from obj. ReflectiveCopyException must be thrown if the implementation cannot copy obj for some reason. Note that a trivial implementation of this interface is possible (always return obj), but this is often not the desired implementation.

Method Summary

Modifier and TypeMethod and Description
public Object
copy(Object obj)

copy the object.

Method Detail

copyback to summary
public Object copy(Object obj) throws ReflectiveCopyException

copy the object. Equivalent to copy( obj, false ).