Package io.micronaut.coherence.event
Class CoherenceEventListenerProcessor
java.lang.Object
io.micronaut.coherence.event.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 Object
implements io.micronaut.context.processor.ExecutableMethodProcessor<CoherenceEventListener>
A
ExecutableMethodProcessor
that processes methods annotated with
@CoherenceEventListener
.- Since:
- 1.0
- Author:
- Jonathan Knight
-
Constructor Summary
ConstructorDescriptionCoherenceEventListenerProcessor
(io.micronaut.context.ApplicationContext beanContext, FilterFactories filterFactories, MapEventTransformerFactories transformerFactory) Create theCoherenceEventListenerProcessor
bean. -
Method Summary
Modifier and TypeMethodDescriptionList<com.tangosol.net.events.NamedEventInterceptor<?>>
Returns the discovered interceptors.void
process
(io.micronaut.inject.BeanDefinition<?> beanDefinition, io.micronaut.inject.ExecutableMethod<?, ?> method) ProcessExecutableMethod
bean definitions for methods annotated withCoherenceEventListener
.
-
Constructor Details
-
CoherenceEventListenerProcessor
@Inject public CoherenceEventListenerProcessor(io.micronaut.context.ApplicationContext beanContext, FilterFactories filterFactories, MapEventTransformerFactories transformerFactory) Create theCoherenceEventListenerProcessor
bean.- Parameters:
beanContext
- theBeanContext
filterFactories
- the factory to produceFilter
instancestransformerFactory
- the factory to produceMapEventTransformer
instances
-
-
Method Details
-
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) ProcessExecutableMethod
bean definitions for methods annotated withCoherenceEventListener
. Each method will be turned into either anEventInterceptor
or aMapListener
.- Specified by:
process
in interfaceio.micronaut.context.processor.AnnotationProcessor<CoherenceEventListener,
io.micronaut.inject.ExecutableMethod<?, ?>> - Specified by:
process
in interfaceio.micronaut.context.processor.ExecutableMethodProcessor<CoherenceEventListener>
- Parameters:
beanDefinition
- The bean definition to processmethod
- The executable method
-