private static class DirectoryService.WorkArea extends java.lang.Object implements Cleanable
ContextLocal<BatchRef> activeBatch and
ContextLocal<BindRef> bound and has the purpose of
cleaning them up when needed.
Mainly this will happen when DirectoryService.unbind() is
called from BindRef.cleanup().
The reason of this class is to eliminate a small bug slipped in when
fixing a session deadlock in P2J server virtual by clearing the tokenMap
at the start of the SecurityContext.cleanup() method.
As a consequence, any Cleanable.cleanup() code must not
rely on context-local variables, as at the time of this call, the
context-local variables are already deleted from the
SecurityContext (by the
SecurityContext.cleanup() method).
| Modifier and Type | Field and Description |
|---|---|
private DirectoryService.BatchRef |
activeBatch
active batch variable
|
private DirectoryService.BindRef |
bound
bind reference variable
|
| Modifier | Constructor and Description |
|---|---|
private |
WorkArea() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup()
Do the cleanup when it is time to finalize.
|
private DirectoryService.BatchRef activeBatch
private DirectoryService.BindRef bound