Annotation Type Stop
int priorityOptional parameter which defines the order in which this method will be called when a component has more than one method annotated with
Start. 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)or
BasicComponentRegistry.addDynamicDependency(String, String)) are also ignored.