org.apache.pluto.core
Class ContainerInvocation

java.lang.Object
  extended by 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

Constructor Summary
ContainerInvocation(PortletWindow window, PortletContainer container)
           
 
Method Summary
static void clearInvocation()
           
static ContainerInvocation getInvocation()
          Retrieve the container which is currently executing.
 PortletContainer getPortletContainer()
           
 PortletWindow getPortletWindow()
           
 void setContainer(PortletContainer container)
           
static void setInvocation(PortletContainer container, PortletWindow window)
          Set the container currently under execution.
 void setWindow(PortletWindow window)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContainerInvocation

public ContainerInvocation(PortletWindow window,
                           PortletContainer container)
Method Detail

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 invoked
window - 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-2009 Apache Software Foundation. All Rights Reserved.