Class ClassCopierFactoryArrayImpl
java.lang.Object
org.glassfish.pfl.dynamic.copyobject.impl.ClassCopierFactoryArrayImpl
- All Implemented Interfaces:
ClassCopierFactory
A factory used for creating ClassCopier instances.
An instance of this factory can be created and customized to
handle special copying semantics for certain classes.
This maintains a cache of ClassCopiers, so that a ClassCopier is
never created more than once for a particular class.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetClassCopier(Class<?> cls) Return the ClassCopier instance for a particular class.
-
Constructor Details
-
ClassCopierFactoryArrayImpl
-
-
Method Details
-
getClassCopier
Description copied from interface:ClassCopierFactoryReturn 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.- Specified by:
getClassCopierin interfaceClassCopierFactory
-