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

public Interface PipelineClassCopierFactory

extends ClassCopierFactory
Known Direct Implementers
org.glassfish.pfl.dynamic.copyobject.impl.ClassCopierFactoryPipelineImpl

A factory used for creating ClassCopier instances.

Method Summary

Modifier and TypeMethod and Description
public ClassCopier
lookupInCache(Class<?> cls)

Look for cls only in the cache; do not create a ClassCopier if there isn't one already in the cache.

public boolean
reflectivelyCopyable(Class<?> cls)

Added this method so reflective copier could check if serializable object contains a transient field of specific type.

public void
registerImmutable(Class<?> cls)

Mark this class as immutable, so that it is not copied at all.

public void
setSpecialClassCopierFactory(ClassCopierFactory ccf)

Add a special ClassCopierFactory into the chain so that it handles some special cases.

Inherited from org.glassfish.pfl.dynamic.copyobject.impl.ClassCopierFactory:
getClassCopier

Method Detail

lookupInCacheback to summary
public ClassCopier lookupInCache(Class<?> cls)

Look for cls only in the cache; do not create a ClassCopier if there isn't one already in the cache.

reflectivelyCopyableback to summary
public boolean reflectivelyCopyable(Class<?> cls)

Added this method so reflective copier could check if serializable object contains a transient field of specific type.

registerImmutableback to summary
public void registerImmutable(Class<?> cls)

Mark this class as immutable, so that it is not copied at all.

setSpecialClassCopierFactoryback to summary
public void setSpecialClassCopierFactory(ClassCopierFactory ccf)

Add a special ClassCopierFactory into the chain so that it handles some special cases.