Class DefaultClassCopiers

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

public abstract class DefaultClassCopiers extends Object
  • Field Details

    • identityClassCopier

      private static ClassCopier identityClassCopier
    • errorClassCopier

      private static ClassCopier errorClassCopier
  • Constructor Details

    • DefaultClassCopiers

      private DefaultClassCopiers()
  • Method Details

    • 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.