org.glassfish.pfl.dynamic.copyobject.impl
Class DefaultClassCopiers

java.lang.Object
  extended by org.glassfish.pfl.dynamic.copyobject.impl.DefaultClassCopiers

public abstract class DefaultClassCopiers
extends Object


Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.



Copyright © 2013 Oracle. All Rights Reserved.