Package com.oracle.coherence.cdi
Interface FilterFactory<A extends Annotation,T>
- Type Parameters:
A
- the annotation type that the factory supportsT
- the type of value being filtered
- All Known Implementing Classes:
FilterProducer.AlwaysFilterSupplier
,FilterProducer.WhereFilterSupplier
public interface FilterFactory<A extends Annotation,T>
A factory that produces instances of
Filter
for a
given Annotation
.
A FilterFactory
is normally a CDI bean that is also annotated with a
FilterBinding
annotation. Whenever an injection point annotated with
the corresponding FilterBinding
annotation is encountered the FilterFactory
bean's create(java.lang.annotation.Annotation)
method is called to create an instance of a Filter
.
- Since:
- 20.06
- Author:
- Jonathan Knight 2019.10.24
-
Method Summary
-
Method Details
-
create
Create aFilter
instance.- Parameters:
annotation
- theAnnotation
that defines the filter- Returns:
- a
Filter
instance
-