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

All Known Subinterfaces:
CachingClassCopierFactory, PipelineClassCopierFactory
All Known Implementing Classes:
ClassCopierFactoryArrayImpl, ClassCopierFactoryPipelineImpl

public interface ClassCopierFactory

A factory used for creating ClassCopier instances.


Method Summary
 ClassCopier getClassCopier(Class<?> cls)
          Return the ClassCopier instance for a particular class.
 

Method Detail

getClassCopier

ClassCopier getClassCopier(Class<?> cls)
                           throws ReflectiveCopyException
Return the ClassCopier instance for a particular class. The resulting ClassCopier may be used to copy an instance of type cls. Note that it is an error to pass an interface for cls, as interfaces have no state and no constructors, and hence cannot be copied.

Throws:
ReflectiveCopyException


Copyright © 2013 Oracle. All Rights Reserved.