Interface ClassCloner

All Known Implementing Classes:
ClassLoaderClassCloner

public interface ClassCloner
A cloner for class types. Used (for example) to load an equivalent class from an alternate classloader.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final ClassCloner
    A class cloner which just returns the class it is given.
  • Method Summary

    Modifier and Type
    Method
    Description
    clone(Class<?> original)
    Clone the given class.
    cloneProxy(Class<?> proxyClass)
    Clone the given reflection proxy class.
  • Field Details

    • IDENTITY

      static final ClassCloner IDENTITY
      A class cloner which just returns the class it is given. This cloner can be used in cases where an object must be deep-cloned within the same class loader.
  • Method Details