|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.directory.server.core.invocation.InvocationStack
Keeps track of recursive Invocations. This stack assumes an invocation
occurs in the same thread since it is called first, so we manages stacks
for each invocation in ThreadLocal-like manner. You can just use
getInstance() to get current invocation stack.
Using InvocationStack, you can find out current effective JNDI
Context or detect infinite recursions.
| Method Summary | |
static InvocationStack |
getInstance()
Returns the invocation stack of current thread. |
boolean |
isEmpty()
Returns true if the stack is empty false otherwise. |
Invocation |
peek()
Returns the latest invocation. |
Invocation |
pop()
Pops the latest invocation from this stack. |
void |
push(Invocation invocation)
Pushes the specified invocation to this stack. |
Invocation[] |
toArray()
Returns an array of Invocations. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static InvocationStack getInstance()
public Invocation[] toArray()
Invocations. 0th element is the
latest invocation.
public Invocation peek()
public boolean isEmpty()
public void push(Invocation invocation)
public Invocation pop()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||