java.lang.Object
io.github.sugarcubes.cloner.Toolset

public final class Toolset extends Object
Low-level tools of the reflection cloner: reflection, instance allocators and field adapters. The cloner asks them how to create an instance and to read and write its fields, everything else is decided by the cloner.

Toolsets are created by the profiles of Toolsets or by ToolsetBuilder.

  • Method Details

    • getReflection

      public Reflection getReflection()
      Returns reflection.
      Returns:
      reflection
    • getAllocatorFactory

      public InstanceAllocatorFactory getAllocatorFactory()
      Returns instance allocator factory.
      Returns:
      instance allocator factory
    • getFieldAdapterFactory

      public FieldAdapterFactory getFieldAdapterFactory()
      Returns field adapter factory.
      Returns:
      field adapter factory
    • toString

      public String toString()
      Describes the chosen mechanisms, e.g. for logging.
      Overrides:
      toString in class Object
      Returns:
      description of the toolset