org.apache.pluto.core
Class ContainerInvocation
java.lang.Object
org.apache.pluto.core.ContainerInvocation
public class ContainerInvocation
- extends java.lang.Object
Whenever possible,
use of this class should be avoided. It is intended for
use by objects which can NOT be instantiated and managed
by the container.
Provides static access to the currently executing container.
This is critical for instance of the PortletContext and PortletConfig
to be able to access container specific services.
- Since:
- 1.1
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContainerInvocation
public ContainerInvocation(PortletWindow window,
PortletContainer container)
getInvocation
public static ContainerInvocation getInvocation()
- Retrieve the container which is currently
executing.
- Returns:
- the currently executing portlet container.
setInvocation
public static void setInvocation(PortletContainer container,
PortletWindow window)
- Set the container currently under execution.
- Parameters:
container
- the container invokedwindow
- used in the invocation
clearInvocation
public static void clearInvocation()
getPortletWindow
public PortletWindow getPortletWindow()
setWindow
public void setWindow(PortletWindow window)
getPortletContainer
public PortletContainer getPortletContainer()
setContainer
public void setContainer(PortletContainer container)
Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.