Class DefaultClassCopiers
- java.lang.Object
-
- org.glassfish.pfl.dynamic.copyobject.impl.DefaultClassCopiers
-
public abstract class DefaultClassCopiers extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private static ClassCopier
errorClassCopier
private static ClassCopier
identityClassCopier
-
Constructor Summary
Constructors Modifier Constructor Description private
DefaultClassCopiers()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ClassCopier
getErrorClassCopier()
Return a ClassCopier that always raises a ReflectiveCopyException whenever its copy method is called.static ClassCopier
getIdentityClassCopier()
Return a ClassCopier that simple returns its argument as its result.static ClassCopier
makeMapClassCopier(ClassCopierFactory ccf)
Return a ClassCopier that is suitable for instances of the Map interface.
-
-
-
Field Detail
-
identityClassCopier
private static ClassCopier identityClassCopier
-
errorClassCopier
private static ClassCopier errorClassCopier
-
-
Method Detail
-
getIdentityClassCopier
public static ClassCopier getIdentityClassCopier()
Return a ClassCopier that simple returns its argument as its result.
-
getErrorClassCopier
public static ClassCopier getErrorClassCopier()
Return a ClassCopier that always raises a ReflectiveCopyException whenever its copy method is called.
-
makeMapClassCopier
public static ClassCopier makeMapClassCopier(ClassCopierFactory ccf)
Return a ClassCopier that is suitable for instances of the Map interface. This should be limited to HashMap, Hashtable, IdentityHashMap, and TreeMap.
-
-