@NotStorableClass public final class ToProxyDeepCopier extends AbstractDeepCopy
classInfoFactory, deepCopyServiceDelagate, HELPER_REFLECT, logger, objectCopyMap, rootSourceObject
Modifier and Type | Method and Description |
---|---|
Object |
deepCopy(Class<?> objectClass,
Class<?>[] parameterTypes,
Object[] initargs,
IDeepCopyServiceDelegate deepCopyServiceDelegate)
create a proxy deep copy of creating constructed object
|
Object |
deepCopy(Class<?> objectClass,
IDeepCopyServiceDelegate deepCopyServiceDelegate) |
Object |
deepCopy(Object sourceObject,
IDeepCopyServiceDelegate deepCopyServiceDelegate)
create a proxy deep copy of existing object
|
protected Object |
deepCopy(Object rootSourceObject,
IDeepCopyServiceDelegate deepCopyServiceDelegate,
boolean forceLoad) |
protected void |
deepCopyDone() |
protected void |
forceLoadImpl(Object objectToCopy) |
static ToProxyDeepCopier |
getInstance() |
protected boolean |
mustBeCopied(Object objectToCopy,
ClassInfo objectToCopyClassInfo) |
protected Object |
newInstanceForObjectCopy(Object sourceObject,
ClassInfo sourceObjectClassInfo)
create a new instance copy of source object
the new instance must be done without calling constructor since state will be set by field value copy |
public static ToProxyDeepCopier getInstance()
protected Object deepCopy(Object rootSourceObject, IDeepCopyServiceDelegate deepCopyServiceDelegate, boolean forceLoad) throws CopierException
deepCopy
in class AbstractDeepCopy
rootSourceObject
- the source objectforceLoad
- true if force proxy loadCopierException
public Object deepCopy(Object sourceObject, IDeepCopyServiceDelegate deepCopyServiceDelegate) throws CopierException
sourceObject
- deepCopyServiceDelegate
- CopierException
public Object deepCopy(Class<?> objectClass, Class<?>[] parameterTypes, Object[] initargs, IDeepCopyServiceDelegate deepCopyServiceDelegate) throws CopierException
objectClass
- parameterTypes
- initargs
- deepCopyServiceDelegate
- CopierException
public Object deepCopy(Class<?> objectClass, IDeepCopyServiceDelegate deepCopyServiceDelegate) throws CopierException
CopierException
protected void deepCopyDone() throws CopierException
deepCopyDone
in class AbstractDeepCopy
CopierException
protected void forceLoadImpl(Object objectToCopy) throws ObjectIOException, ObjectIODataRecordNotFoundException, ObjectIOInvalidClassException, ObjectIOClassNotFoundException, ObjectIODataCorruptedException, ObjectIONotSerializableException
protected boolean mustBeCopied(Object objectToCopy, ClassInfo objectToCopyClassInfo) throws CopierException
mustBeCopied
in class AbstractDeepCopy
CopierException
protected Object newInstanceForObjectCopy(Object sourceObject, ClassInfo sourceObjectClassInfo) throws CopierException
AbstractDeepCopy
newInstanceForObjectCopy
in class AbstractDeepCopy
sourceObject
- the source objectsourceObjectClassInfo
- the class information of the object to createCopierException
Copyright © 2007-2012 Luc Peuvrier. All Rights Reserved.