org.glassfish.pfl.dynamic.copyobject.impl
Interface PipelineClassCopierFactory

All Superinterfaces:
ClassCopierFactory
All Known Implementing Classes:
ClassCopierFactoryPipelineImpl

public interface PipelineClassCopierFactory
extends ClassCopierFactory

A factory used for creating ClassCopier instances.


Method Summary
 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.
 boolean reflectivelyCopyable(Class<?> cls)
          Added this method so reflective copier could check if serializable object contains a transient field of specific type.
 void registerImmutable(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(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(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(Class<?> cls)
Added this method so reflective copier could check if serializable object contains a transient field of specific type.



Copyright © 2013 Oracle. All Rights Reserved.