Interface ClassCopierFactory

All Known Subinterfaces:
CachingClassCopierFactory, PipelineClassCopierFactory
All Known Implementing Classes:
ClassCopierFactoryArrayImpl, ClassCopierFactoryPipelineImpl

public interface ClassCopierFactory
A factory used for creating ClassCopier instances.
  • Method Summary

    Modifier and Type
    Method
    Description
    Return the ClassCopier instance for a particular class.
  • Method Details

    • getClassCopier

      ClassCopier getClassCopier(Class<?> cls) throws ReflectiveCopyException
      Return the ClassCopier instance for a particular class. The resulting ClassCopier may be used to copy an instance of type cls. Note that it is an error to pass an interface for cls, as interfaces have no state and no constructors, and hence cannot be copied.
      Throws:
      ReflectiveCopyException