Package com.oracle.coherence.cdi
Class FilterProducer
java.lang.Object
com.oracle.coherence.cdi.FilterProducer
- All Implemented Interfaces:
AnnotatedMapListener.FilterProducer
@ApplicationScoped
public class FilterProducer
extends Object
implements AnnotatedMapListener.FilterProducer
A CDI bean that produces
Filter
instances using
FilterFactory
beans annotated with FilterBinding
annotations.- Since:
- 20.06
- Author:
- Jonathan Knight 2019.10.24
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
AFilterFactory
that producesAlwaysFilter
instances.static class
AFilterFactory
that producesFilter
instances from a CohQL where clause. -
Method Summary
-
Method Details
-
getFilter
@Produces public <T> Filter<T> getFilter(jakarta.enterprise.inject.spi.InjectionPoint injectionPoint) ProducesFilter
based on injection point metadata.- Type Parameters:
T
- the type of objects to filter- Parameters:
injectionPoint
- an injection point- Returns:
- a
Filter
instance
-
resolve
Description copied from interface:AnnotatedMapListener.FilterProducer
Produce aFilter
instance from a set of annotations.- Specified by:
resolve
in interfaceAnnotatedMapListener.FilterProducer
- Type Parameters:
T
- the type of the input argument to the filter- Parameters:
annotations
- the annotations to use to produce theFilter
- Returns:
- an instance of a
Filter
-