|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.roscopeco.janno.util.StackUtils
public class StackUtils
Provides utility methods for working with the request stack. This class
can be used both 'manually' or instantiated and managed by the request
tree. If used from the tree it must be registered in the request stack
itself (so that it can see the ServletRequest
).
Constructor Summary | |
---|---|
StackUtils(ServletRequest req)
Create a StackUtils instance that will work with the request
stack allocated to the given ServletRequest |
Method Summary | |
---|---|
PicoContainerStack |
getStack()
Returns the PicoContainerStack this
StackUtils was instantiated with. |
MutablePicoContainer |
newContainer()
Make a new MutablePicoContainer and push it onto
the request stack. |
PicoContainer |
pop()
Attempts to pop the top container off the stack (i.e. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StackUtils(ServletRequest req)
StackUtils
instance that will work with the request
stack allocated to the given ServletRequest
req
- The ServletRequest for this request.
{@link
- java.lang.IllegalArgumentException} if the supplied request
has no stack associated with it.Method Detail |
---|
public MutablePicoContainer newContainer()
MutablePicoContainer
and push it onto
the request stack. You should not call the lifecycle
methods on this container at any time - it will be managed in
synchronization with the stack. Doing so will cause
IllegalStateException
s to be thrown at an indeterminate time
(usually shutdown but sometimes session cleanup).
MutablePicoContainer
that was pushed.public PicoContainer pop()
PicoContainer
that was removed from
the stack, or null
if nothing was removed.public PicoContainerStack getStack()
PicoContainerStack
this
StackUtils
was instantiated with.
PicoContainerStack
this StackUtils
is working with.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |