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.
-
-
Constructor Summary
Constructors Constructor Description FallbackObjectCopierImpl(ObjectCopier first, ObjectCopier second)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
copy(java.lang.Object src)
copy the object.
-
-
-
Constructor Detail
-
FallbackObjectCopierImpl
public FallbackObjectCopierImpl(ObjectCopier first, ObjectCopier second)
-
-
Method Detail
-
copy
public java.lang.Object copy(java.lang.Object src) throws ReflectiveCopyException
Description copied from interface:ObjectCopier
copy the object. Equivalent to copy( obj, false ).- Specified by:
copy
in interfaceObjectCopier
- Throws:
ReflectiveCopyException
-
-