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