Interface AutoConfigState


public interface AutoConfigState
  • Method Details

    • wireHandler

      static <T> AutoConfigState.ClassHandler<T> wireHandler(Class<T> cls, MethodHandles.Lookup lookup)
      Wire up a handler for the given class, using the given lookup

      This does not consider super classes, since the writeConfigState of a class using this and the applicable annotations should likely call super.writeConfigState to allow the super class to handle its fields, whether or not it also uses the annotations.

      Type Parameters:
      T - the type of the class whose fields are annotated by AutoConfigStateField
      Parameters:
      cls - the class whose fields are annotated
      lookup - a lookup from within the class, granting access to the annotated fields
      Returns:
      the handler