Interface Processor.Factory<A extends java.lang.annotation.Annotation,T>
-
- Type Parameters:
A- annotation typeT- handled value type
- All Superinterfaces:
Processor.AdvancedFactory<A,T>
- 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 aProcessor.- 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<T> make(A data, java.lang.reflect.Type value)
Create a new processor given the annotation and data type.- Parameters:
data- annotation type on record fieldvalue- declared field type- Returns:
- new processor
- Since:
- 4.0.0
-
make
default Processor<T> make(A data, java.lang.reflect.Type value, java.lang.reflect.AnnotatedElement element)
Description copied from interface:Processor.AdvancedFactoryCreate a new processor given the annotation and data type.- Specified by:
makein interfaceProcessor.AdvancedFactory<A extends java.lang.annotation.Annotation,T>- Parameters:
data- annotation type on record fieldvalue- declared field typeelement- container holding the field, with its annotations- Returns:
- new processor
-
-