This project has retired. For details please refer to its Attic page.
PortletTilesContextFactory (Tiles 2 2.0.7 API)

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 Object
implements TilesContextFactory

Creates an instance of the appropriate TilesApplicationContext implementation.

Version:
$Rev: 531864 $ $Date: 2007-04-24 12:24:30 +0200 (Tue, 24 Apr 2007) $

Constructor Summary
PortletTilesContextFactory()
           
 
Method Summary
 TilesApplicationContext createApplicationContext(Object context)
          Create a TilesApplicationContext for the given context.
 TilesRequestContext createRequestContext(TilesApplicationContext context, Object... requestItems)
          Create a TilesRequestContext for the given context, request, and response.
protected  javax.portlet.PortletContext getPortletContext(TilesApplicationContext context)
          Returns the original portlet context.
 void init(Map<String,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(Map<String,String> configParameters)
Initialize the factory.

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

createApplicationContext

public TilesApplicationContext createApplicationContext(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(TilesApplicationContext context,
                                                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(TilesApplicationContext context)
Returns the original portlet context.

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


Copyright © 2001-2008 Apache Software Foundation. All Rights Reserved.