@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 | Optional Element and Description |
|---|---|
int |
value
The priority to use, knowing that the smaller the value the higher the priority.
|
Copyright © 2004–2015 XWiki. All rights reserved.