public interface Cleanable
This interface defines just one method: cleanup(). Tokens that need finalization should be instances of a class that implements this interface.
When it is time to finalize the token, its cleanup() method is called.
Modifier and Type | Method and Description |
---|---|
void |
cleanup()
The only method declared by the interface.
|
void cleanup()
Note
Do not use ContextLocal
references in the cleanup() method
implementation as, at the time of this call, the context-local variables
are already deleted from the SecurityContext (by the
SecurityContext.cleanup()
code).