Annotation Type Stop
-
@Target(METHOD) @Retention(RUNTIME) public @interface Stop
Method level annotation that indicates a (no-param) method to be called on a component registered in the component registry when the registry stops.- Since:
- 4.0
- Author:
- Manik Surtani (manik@jboss.org)
-
-
Element Detail
-
priority
int priority
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.Note: Prior to 9.4, priority parameter allowed the stop methods of one component to run before or after the stop methods of another component. Since 9.4, the priority parameter is ignored unless the component has multiple stop methods. A component's stop methods will always run after the stop methods of its dependencies during start. Changes made to the dependency graph after the component started (with
BasicComponentRegistry.replaceComponent(String, Object, boolean)
orBasicComponentRegistry.addDynamicDependency(String, String)
) are also ignored.- Since:
- 4.0
- Default:
- 10
-
-