Class FallbackObjectCopierImpl
java.lang.Object
org.glassfish.pfl.basic.contain.Pair<ObjectCopier, ObjectCopier>
org.glassfish.pfl.dynamic.copyobject.impl.FallbackObjectCopierImpl
- All Implemented Interfaces:
ObjectCopier
public class FallbackObjectCopierImpl
extends Pair<ObjectCopier, ObjectCopier>
implements ObjectCopier
Trys a first ObjectCopier. If the first throws a ReflectiveCopyException,
falls back and tries a second ObjectCopier.
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
FallbackObjectCopierImpl
-
-
Method Details
-
copy
Description copied from interface:ObjectCopiercopy the object. Equivalent to copy( obj, false ).- Specified by:
copyin interfaceObjectCopier- Throws:
ReflectiveCopyException
-