Top Fields Constructors Methods
org.glassfish.pfl.dynamic.copyobject.impl

public abstract Class DefaultClassCopiers

extends Object
Class Inheritance
Imports
java.util.Iterator, .Map, org.glassfish.pfl.dynamic.copyobject.spi.ReflectiveCopyException

Field Summary

Modifier and TypeField and Description
private static ClassCopier
private static ClassCopier

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static ClassCopier
getErrorClassCopier()

Return a ClassCopier that always raises a ReflectiveCopyException whenever its copy method is called.

public static ClassCopier
getIdentityClassCopier()

Return a ClassCopier that simple returns its argument as its result.

public static ClassCopier
makeMapClassCopier(final ClassCopierFactory ccf)

Return a ClassCopier that is suitable for instances of the Map interface.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

errorClassCopierback to summary
private static ClassCopier errorClassCopier
identityClassCopierback to summary
private static ClassCopier identityClassCopier

Constructor Detail

DefaultClassCopiersback to summary
private DefaultClassCopiers()

Method Detail

getErrorClassCopierback to summary
public static ClassCopier getErrorClassCopier()

Return a ClassCopier that always raises a ReflectiveCopyException whenever its copy method is called.

getIdentityClassCopierback to summary
public static ClassCopier getIdentityClassCopier()

Return a ClassCopier that simple returns its argument as its result.

makeMapClassCopierback to summary
public static ClassCopier makeMapClassCopier(final ClassCopierFactory ccf)

Return a ClassCopier that is suitable for instances of the Map interface. This should be limited to HashMap, Hashtable, IdentityHashMap, and TreeMap.