Interface PipelineClassCopierFactory
-
- All Superinterfaces:
ClassCopierFactory
- All Known Implementing Classes:
ClassCopierFactoryPipelineImpl
public interface PipelineClassCopierFactory extends ClassCopierFactory
A factory used for creating ClassCopier instances.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ClassCopier
lookupInCache(java.lang.Class<?> cls)
Look for cls only in the cache; do not create a ClassCopier if there isn't one already in the cache.boolean
reflectivelyCopyable(java.lang.Class<?> cls)
Added this method so reflective copier could check if serializable object contains a transient field of specific type.void
registerImmutable(java.lang.Class<?> cls)
Mark this class as immutable, so that it is not copied at all.void
setSpecialClassCopierFactory(ClassCopierFactory ccf)
Add a special ClassCopierFactory into the chain so that it handles some special cases.-
Methods inherited from interface org.glassfish.pfl.dynamic.copyobject.impl.ClassCopierFactory
getClassCopier
-
-
-
-
Method Detail
-
lookupInCache
ClassCopier lookupInCache(java.lang.Class<?> cls)
Look for cls only in the cache; do not create a ClassCopier if there isn't one already in the cache.
-
registerImmutable
void registerImmutable(java.lang.Class<?> cls)
Mark this class as immutable, so that it is not copied at all.
-
setSpecialClassCopierFactory
void setSpecialClassCopierFactory(ClassCopierFactory ccf)
Add a special ClassCopierFactory into the chain so that it handles some special cases.
-
reflectivelyCopyable
boolean reflectivelyCopyable(java.lang.Class<?> cls)
Added this method so reflective copier could check if serializable object contains a transient field of specific type.
-
-