org.glassfish.pfl.dynamic.copyobject.impl
Class ClassCopierFactoryArrayImpl
java.lang.Object
org.glassfish.pfl.dynamic.copyobject.impl.ClassCopierFactoryArrayImpl
- All Implemented Interfaces:
- ClassCopierFactory
public class ClassCopierFactoryArrayImpl
- extends Object
- implements 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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClassCopierFactoryArrayImpl
public ClassCopierFactoryArrayImpl(ClassCopierFactory ccf)
getClassCopier
public ClassCopier getClassCopier(Class<?> cls)
- Description copied from interface:
ClassCopierFactory
- 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.
- Specified by:
getClassCopier in interface ClassCopierFactory
Copyright © 2013 Oracle. All Rights Reserved.