Annotation Type Start
Method level annotation that indicates a (no-param) method to be called on a component registered in the
component registry when the registry starts.
- Since:
- 4.0
- Author:
- Manik Surtani (manik@jboss.org)
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionint
Deprecated, for removal: This API element is subject to removal in a future version.Since 10.0, will be removed in a future version.
-
Element Details
-
priority
Deprecated, for removal: This API element is subject to removal in a future version.Since 10.0, will be removed in a future version.Optional parameter which defines the order in which this method will be called when a component has more than one method annotated withStart
. Defaults to 10.A component's start methods will always run after the start methods of its eager dependencies.
Start methods defined (and annotated) in superclasses will run before the start methods defined in derived classes.
Note: Prior to 9.4, priority parameter allowed the start methods of one component to run before or after the start methods of another component. Since 9.4, the priority parameter is ignored unless the component has multiple start methods.
- Since:
- 4.0
- Default:
10
-