Annotation Interface EnableStateMachine
@Retention(RUNTIME)
@Target(TYPE)
@Documented
@EnableAnnotationConfiguration
@Import({StateMachineConfigurationImportSelector.class,StateMachineCommonConfiguration.class,StateMachineConfiguration.class,ObjectPostProcessorConfiguration.class})
@EnableWithStateMachine
public @interface EnableStateMachine
Annotation which imports @
Configuration
s related to
building state machines.-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionboolean
Defines if application context events for a state machine are enable or not.String[]
The name of bean, or if plural, aliases for bean created based on this annotation.
-
Element Details
-
name
String[] nameThe name of bean, or if plural, aliases for bean created based on this annotation. If left unspecified bean name will be autogenerated.- Returns:
- the array if names or empty as default
- See Also:
-
Bean.name()
- Default:
- {"stateMachine"}
-
contextEvents
boolean contextEventsDefines if application context events for a state machine are enable or not. On default events are enabled.- Returns:
- true, if events are enabled.
- Default:
- true
-