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

public Interface ClassCopierFactory

Known Direct Subinterfaces
org.glassfish.pfl.dynamic.copyobject.impl.PipelineClassCopierFactory, org.glassfish.pfl.dynamic.copyobject.impl.CachingClassCopierFactory
Known Direct Implementers
org.glassfish.pfl.dynamic.copyobject.impl.ClassCopierFactoryArrayImpl
Imports
org.glassfish.pfl.dynamic.copyobject.spi.ReflectiveCopyException

A factory used for creating ClassCopier instances.

Method Summary

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

Return the ClassCopier instance for a particular class.

Method Detail

getClassCopierback to summary
public 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.