Interface Processor.Factory<A extends java.lang.annotation.Annotation,​T>

  • Type Parameters:
    A - annotation type
    T - handled value type
    All Superinterfaces:
    Processor.AdvancedFactory<A,​T>
    Enclosing interface:
    Processor<V>
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public static interface Processor.Factory<A extends java.lang.annotation.Annotation,​T>
    extends Processor.AdvancedFactory<A,​T>
    Provider to, given an annotation instance and the type it's on, create a Processor.
    Since:
    4.0.0
    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      Processor<T> make​(A data, java.lang.reflect.Type value)
      Create a new processor given the annotation and data type.
      default Processor<T> make​(A data, java.lang.reflect.Type value, java.lang.reflect.AnnotatedElement element)
      Create a new processor given the annotation and data type.
    • Method Detail

      • make

        Processor<Tmake​(A data,
                          java.lang.reflect.Type value)
        Create a new processor given the annotation and data type.
        Parameters:
        data - annotation type on record field
        value - declared field type
        Returns:
        new processor
        Since:
        4.0.0
      • make

        default Processor<Tmake​(A data,
                                  java.lang.reflect.Type value,
                                  java.lang.reflect.AnnotatedElement element)
        Description copied from interface: Processor.AdvancedFactory
        Create a new processor given the annotation and data type.
        Specified by:
        make in interface Processor.AdvancedFactory<A extends java.lang.annotation.Annotation,​T>
        Parameters:
        data - annotation type on record field
        value - declared field type
        element - container holding the field, with its annotations
        Returns:
        new processor