Annotation Interface TransactionalEventListener
@Target({METHOD,ANNOTATION_TYPE})
@Retention(RUNTIME)
@Documented
@Adapter(io.micronaut.context.event.ApplicationEventListener.class)
@Indexed(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
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
The phase at which a transactional event listener applies. -
Optional Element Summary
Modifier and TypeOptional ElementDescriptionA qualifier value for the specified transaction.
-
Element Details
-
value
- Returns:
- The transaction phase this listener applies to.
- Default:
- AFTER_COMMIT
-
transactionManager
String transactionManagerA qualifier value for the specified transaction.May be used to determine the target transaction manager, matching the qualifier value (or the bean name) of a specific
SynchronousTransactionManager
bean definition.- Returns:
- The transaction manager
- Since:
- 3.5.0
- Default:
- ""
-