Interface ExtractorFactory<A extends Annotation,T,E>
- Type Parameters:
A
- the annotation type that the factory supportsT
- the type of the value to extract fromE
- the type of value that will be extracted
public interface ExtractorFactory<A extends Annotation,T,E>
A factory that produces instances of
ValueExtractor
for a given Annotation
.
A ExtractorFactory
is normally a CDI
bean that is also annotated with a ExtractorBinding
annotation. Whenever an injection point annotated with the corresponding
ExtractorBinding
annotation is
encountered the ExtractorFactory
bean's
create(java.lang.annotation.Annotation)
method is called to create an instance of a ValueExtractor
.
- Since:
- 3.0
- Author:
- Gunnar Hillert
-
Method Summary
-
Method Details
-
create
Create aValueExtractor
instance.- Parameters:
annotation
- theAnnotation
that defines the ValueExtractor- Returns:
- a
ValueExtractor
instance
-