org.glassfish.pfl.dynamic.copyobject.impl
Class ClassCopierOrdinaryImpl
java.lang.Object
org.glassfish.pfl.dynamic.copyobject.impl.ClassCopierBase
org.glassfish.pfl.dynamic.copyobject.impl.ClassCopierOrdinaryImpl
- All Implemented Interfaces:
- ClassCopier
public class ClassCopierOrdinaryImpl
- extends ClassCopierBase
ClassCopierOrdinaryImpl
public ClassCopierOrdinaryImpl(PipelineClassCopierFactory ccf,
Class<?> cls)
throws ReflectiveCopyException
- Throws:
ReflectiveCopyException
setCodegenCopierAllowed
public static void setCodegenCopierAllowed(boolean flag)
createCopy
public Object createCopy(Object source)
throws ReflectiveCopyException
- Description copied from class:
ClassCopierBase
- Create a copy of source. The copy may or may not be fully
initialized. This method must always be overridden in a
subclass.
- Specified by:
createCopy in class ClassCopierBase
- Throws:
ReflectiveCopyException
doCopy
public Object doCopy(Map<Object,Object> oldToNew,
Object source,
Object result)
throws ReflectiveCopyException
- Description copied from class:
ClassCopierBase
- Do the copying of data from source to result.
This just returns the result by default, but it may be overrideden
in a subclass. When this method completes, result must be fully
initialized.
- Overrides:
doCopy in class ClassCopierBase
- Throws:
ReflectiveCopyException
Copyright © 2013 Oracle. All Rights Reserved.