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
  • Method Details

    • getFilter

      @Produces public <T> Filter<T> getFilter(jakarta.enterprise.inject.spi.InjectionPoint injectionPoint)
      Produces Filter based on injection point metadata.
      Type Parameters:
      T - the type of objects to filter
      Parameters:
      injectionPoint - an injection point
      Returns:
      a Filter instance
    • resolve

      public <T> Filter<T> resolve(Set<Annotation> annotations)
      Description copied from interface: AnnotatedMapListener.FilterProducer
      Produce a Filter instance from a set of annotations.
      Specified by:
      resolve in interface AnnotatedMapListener.FilterProducer
      Type Parameters:
      T - the type of the input argument to the filter
      Parameters:
      annotations - the annotations to use to produce the Filter
      Returns:
      an instance of a Filter