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

org.apache.tiles.context
Class ChainedTilesContextFactory

Package class diagram package ChainedTilesContextFactory
java.lang.Object
  extended by org.apache.tiles.context.ChainedTilesContextFactory
All Implemented Interfaces:
TilesContextFactory
Direct Known Subclasses:
EnhancedContextFactory

public class ChainedTilesContextFactory
extends Object
implements TilesContextFactory

Default implementation for TilesContextFactory, that creates a chain of sub-factories, trying each one until it returns a not-null value.

Version:
$Rev: 538556 $ $Date: 2007-05-16 14:11:45 +0200 (Wed, 16 May 2007) $

Field Summary
static String[] DEFAULT_FACTORY_CLASS_NAMES
          The default class names to instantiate that compose the chain..
static String FACTORY_CLASS_NAMES
          Factory class names initialization parameter to use.
 
Constructor Summary
ChainedTilesContextFactory()
           
 
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.
 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
 

Field Detail

FACTORY_CLASS_NAMES

public static final String FACTORY_CLASS_NAMES
Factory class names initialization parameter to use.

See Also:
Constant Field Values

DEFAULT_FACTORY_CLASS_NAMES

public static final String[] DEFAULT_FACTORY_CLASS_NAMES
The default class names to instantiate that compose the chain..

Constructor Detail

ChainedTilesContextFactory

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


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