Package org.xwiki.component.annotation
Annotation Type DisposePriority
-
@Documented @Retention(RUNTIME) @Target(TYPE) @Inherited public @interface DisposePriority
Helps controlling the order in which Components are disposed upon XWiki's shutdown. This annotation is optional and should be used only for Components needing to be disposed before or after other components (for example the Database shutdown needs to be executed after all other components using DB storage have been disposed of).
When used, this annotation takes precedence over the natural order defined by explicit Component dependencies.
The default priority is 1000.
- Since:
- 6.2.1
- Version:
- $Id: 814159c532d3a21bd877007aa7b4c1c6443eed00 $
-
-
Field Summary
Fields Modifier and Type Fields Description static int
DEFAULT_PRIORITY
Default dispose priority.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description int
value
-