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

org.apache.tiles.jsp.context
Class JspTilesContextFactory

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

public class JspTilesContextFactory
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
JspTilesContextFactory()
           
 
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  ServletContext getServletContext(TilesApplicationContext context)
          Returns the original servlet 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

JspTilesContextFactory

public JspTilesContextFactory()
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

getServletContext

protected ServletContext getServletContext(TilesApplicationContext context)
Returns the original servlet context.

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


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