Package com.oracle.coherence.cdi
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
- All Known Implementing Classes:
ExtractorProducer.ChainedExtractorsSupplier
,ExtractorProducer.ChainedExtractorSupplier
,ExtractorProducer.PofExtractorsSupplier
,ExtractorProducer.PofExtractorSupplier
,ExtractorProducer.UniversalExtractorsSupplier
,ExtractorProducer.UniversalExtractorSupplier
public interface ExtractorFactory<A extends Annotation,T,E>
A factory that produces instances ofValueExtractor
for a givenAnnotation
.A
ExtractorFactory
is normally a CDI bean that is also annotated with aExtractorBinding
annotation. Whenever an injection point annotated with the correspondingExtractorBinding
annotation is encountered theExtractorFactory
bean'screate(java.lang.annotation.Annotation)
method is called to create an instance of aValueExtractor
.- Since:
- 20.06
- Author:
- Jonathan Knight 2019.10.25
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ValueExtractor<T,E>
create(A annotation)
Create aValueExtractor
instance.
-
-
-
Method Detail
-
create
ValueExtractor<T,E> create(A annotation)
Create aValueExtractor
instance.- Parameters:
annotation
- theAnnotation
that defines the ValueExtractor- Returns:
- a
ValueExtractor
instance
-
-