@Documented @Retention(value=RUNTIME) @Target(value=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.
Modifier and Type | Fields and Description |
---|---|
static int |
DEFAULT_PRIORITY
Default dispose priority.
|
Modifier and Type | Optional Element and Description |
---|---|
int |
value |
Copyright © 2004–2021 XWiki. All rights reserved.