Class CoherenceEventListenerProcessor

  • All Implemented Interfaces:
    io.micronaut.context.processor.AnnotationProcessor<CoherenceEventListener,​io.micronaut.inject.ExecutableMethod<?,​?>>, io.micronaut.context.processor.ExecutableMethodProcessor<CoherenceEventListener>

    @Singleton
    @Context
    public class CoherenceEventListenerProcessor
    extends java.lang.Object
    implements io.micronaut.context.processor.ExecutableMethodProcessor<CoherenceEventListener>
    A ExecutableMethodProcessor that processes methods annotated with @CoherenceEventListener.
    Since:
    1.0
    Author:
    Jonathan Knight
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addMapListener​(io.micronaut.coherence.event.AnnotatedMapListener<?,​?> listener)
      Add specified listener to the collection of discovered observer-based listeners.
      java.util.List<com.tangosol.net.events.NamedEventInterceptor<?>> getInterceptors()
      Returns the discovered interceptors.
      java.util.Set<io.micronaut.coherence.event.AnnotatedMapListener<?,​?>> getMapListeners​(java.lang.String serviceName, java.lang.String cacheName)
      Return all map listeners that should be registered for a particular service and cache combination.
      java.util.Collection<io.micronaut.coherence.event.AnnotatedMapListener<?,​?>> getNonWildcardMapListeners()
      Return all map listeners that should be registered against a specific remote cache or map in a specific session.
      void process​(io.micronaut.inject.BeanDefinition<?> beanDefinition, io.micronaut.inject.ExecutableMethod<?,​?> method)
      Process ExecutableMethod bean definitions for methods annotated with CoherenceEventListener.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CoherenceEventListenerProcessor

        @Inject
        public CoherenceEventListenerProcessor​(io.micronaut.context.ApplicationContext beanContext,
                                               FilterFactories filterFactories,
                                               MapEventTransformerFactories transformerFactory)
        Parameters:
        beanContext - the BeanContext
        filterFactories - the factory to produce Filter instances
        transformerFactory - the factory to produce MapEventTransformer instances
    • Method Detail

      • getInterceptors

        public java.util.List<com.tangosol.net.events.NamedEventInterceptor<?>> getInterceptors()
        Returns the discovered interceptors.
        Returns:
        a list of discovered NamedEventInterceptor beans
      • process

        public void process​(io.micronaut.inject.BeanDefinition<?> beanDefinition,
                            io.micronaut.inject.ExecutableMethod<?,​?> method)
        Process ExecutableMethod bean definitions for methods annotated with CoherenceEventListener. Each method will be turned into either an EventInterceptor or a MapListener.
        Specified by:
        process in interface io.micronaut.context.processor.AnnotationProcessor<CoherenceEventListener,​io.micronaut.inject.ExecutableMethod<?,​?>>
        Specified by:
        process in interface io.micronaut.context.processor.ExecutableMethodProcessor<CoherenceEventListener>
        Parameters:
        beanDefinition - The bean definition to process
        method - The executable method
      • addMapListener

        public void addMapListener​(io.micronaut.coherence.event.AnnotatedMapListener<?,​?> listener)
        Add specified listener to the collection of discovered observer-based listeners.
        Parameters:
        listener - the listener to add
      • getMapListeners

        public java.util.Set<io.micronaut.coherence.event.AnnotatedMapListener<?,​?>> getMapListeners​(java.lang.String serviceName,
                                                                                                           java.lang.String cacheName)
        Return all map listeners that should be registered for a particular service and cache combination.
        Parameters:
        serviceName - the name of the service
        cacheName - the name of the cache
        Returns:
        a set of all listeners that should be registered
      • getNonWildcardMapListeners

        public java.util.Collection<io.micronaut.coherence.event.AnnotatedMapListener<?,​?>> getNonWildcardMapListeners()
        Return all map listeners that should be registered against a specific remote cache or map in a specific session.
        Returns:
        all map listeners that should be registered against a specific cache or map in a specific session