|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Target(value=METHOD) @Retention(value=RUNTIME) public @interface Dispose
Annotation indicating this method should be called on application shut down.
Note that a reference is held to this bean by the lifecycle system, if this bean is not a singleton, and gets instantiated in response to regular events, you will run out of memory. Note: If this bean is provided by an @Provided method, then that method *must* be annotated with @Singleton, otherwise it won't be detected.
Optional Element Summary | |
---|---|
int |
order
The order in which it should be disposed, higher meaning earlier. |
public abstract int order
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |