org.apache.tiles.portlet.context
Class PortletTilesContextFactory

Package class diagram package PortletTilesContextFactory
java.lang.Object
  extended by org.apache.tiles.portlet.context.PortletTilesContextFactory
All Implemented Interfaces:
TilesContextFactory

public class PortletTilesContextFactory
extends java.lang.Object
implements TilesContextFactory

Creates an instance of the appropriate TilesApplicationContext implementation.


Constructor Summary
PortletTilesContextFactory()
           
 
Method Summary
 org.apache.tiles.TilesApplicationContext createApplicationContext(java.lang.Object context)
          Create a TilesApplicationContext for the given context.
 TilesRequestContext createRequestContext(org.apache.tiles.TilesApplicationContext context, java.lang.Object... requestItems)
          Create a TilesRequestContext for the given context, request, and response.
protected  javax.portlet.PortletContext getPortletContext(org.apache.tiles.TilesApplicationContext context)
          Returns the original portlet context.
 void init(java.util.Map<java.lang.String,java.lang.String> configParameters)
          Initialize the factory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortletTilesContextFactory

public PortletTilesContextFactory()
Method Detail

init

public void init(java.util.Map<java.lang.String,java.lang.String> configParameters)
Initialize the factory.

Specified by:
init in interface TilesContextFactory
Parameters:
configParameters - A map of parameters.

createApplicationContext

public org.apache.tiles.TilesApplicationContext createApplicationContext(java.lang.Object context)
Create a TilesApplicationContext for the given context.

Specified by:
createApplicationContext in interface TilesContextFactory
Parameters:
context - The (application) context to use.
Returns:
TilesApplicationContext The Tiles application context.

createRequestContext

public TilesRequestContext createRequestContext(org.apache.tiles.TilesApplicationContext context,
                                                java.lang.Object... requestItems)
Create a TilesRequestContext for the given context, request, and response.

Specified by:
createRequestContext in interface TilesContextFactory
Parameters:
context - the associated TilesApplicationContext
requestItems - the associated request items, typically a request and a response.
Returns:
TilesRequestContext

getPortletContext

protected javax.portlet.PortletContext getPortletContext(org.apache.tiles.TilesApplicationContext context)
Returns the original portlet context.

Parameters:
context - The application context.
Returns:
The original portlet context, if found.