@Target(value={METHOD,ANNOTATION_TYPE})
@Retention(value=RUNTIME)
@Documented
@Adapter(value=io.micronaut.context.event.ApplicationEventListener.class)
@Indexed(value=io.micronaut.context.event.ApplicationEventListener.class)
public @interface TransactionalEventListener
Largely based on the similar annotation in Spring. This is an Adapter
that
turns any annotated method into a transaction aware event listener that implements the
ApplicationEventListener
interface.
- Since:
- 1.0.0
- Author:
- graemerocher
- See Also:
ApplicationEventListener
,
TransactionalEventAdvice
,
TransactionalEventInterceptor