|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Target(value=TYPE) @Retention(value=RUNTIME) @Documented @Import(value=AnnotationDrivenConfiguration.class) public @interface AnnotationDriven
Annotation for @Configuration
that will automatically
subscribe @CommandHandler
and @EventHandler
annotated beans with the CommandBus and
EventBus, respectively.
Optional Element Summary | |
---|---|
String |
commandBus
The bean name of the Command Bus to register @CommandHandler annotated beans with. |
String |
eventBus
The bean name of the Event Bus to register @EventHandler annotated beans with. |
int |
phase
The phase in the application context lifecycle in which to subscribe (and possibly unsubscribe) the handlers with the CommandBus and EventBus. |
boolean |
unsubscribeOnShutdown
Whether to unsubscribe beans on shutdown. |
public abstract String eventBus
@EventHandler
annotated beans with.
public abstract String commandBus
@CommandHandler
annotated beans with.
public abstract boolean unsubscribeOnShutdown
false
. Setting this to true
will
explicitly unsubscribe beans from the Event- and CommandBus when shutting down the application context.
public abstract int phase
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |