Package io.micronaut.coherence
Interface FilterFactory<A extends Annotation,T>
- Type Parameters:
A- the annotation type that the factory supportsT- the type of value being filtered
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(Annotation)
method is called to create an instance of a Filter.
- Since:
- 1.0
- Author:
- Jonathan Knight
-
Method Summary
-
Method Details
-
create
Create aFilterinstance.- Parameters:
annotation- theAnnotationthat defines the filter- Returns:
- a
Filterinstance
-