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

org.apache.tiles.context
Class ChainedTilesApplicationContextFactory

Package class diagram package ChainedTilesApplicationContextFactory
java.lang.Object
  extended by org.apache.tiles.context.AbstractTilesApplicationContextFactory
      extended by org.apache.tiles.context.ChainedTilesApplicationContextFactory
All Implemented Interfaces:
Initializable
Direct Known Subclasses:
EnhancedTilesApplicationContextFactory

public class ChainedTilesApplicationContextFactory
extends AbstractTilesApplicationContextFactory
implements Initializable

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

Since:
2.1.1
Version:
$Rev: 774104 $ $Date: 2009-05-12 23:44:39 +0200 (mar, 12 mag 2009) $

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.
 
Fields inherited from class org.apache.tiles.context.AbstractTilesApplicationContextFactory
APPLICATION_CONTEXT_FACTORY_INIT_PARAM
 
Constructor Summary
ChainedTilesApplicationContextFactory()
           
 
Method Summary
 TilesApplicationContext createApplicationContext(Object context)
          Create a TilesApplicationContext for the given context.
 void init(Map<String,String> configParameters)
          Initializes the object.
 void setFactories(List<AbstractTilesApplicationContextFactory> factories)
          Sets the factories to be used.
 
Methods inherited from class org.apache.tiles.context.AbstractTilesApplicationContextFactory
createFactory
 
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.

Since:
2.1.1
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..

Since:
2.1.1
Constructor Detail

ChainedTilesApplicationContextFactory

public ChainedTilesApplicationContextFactory()
Method Detail

setFactories

public void setFactories(List<AbstractTilesApplicationContextFactory> factories)
Sets the factories to be used.

Parameters:
factories - The factories to be used.

init

public void init(Map<String,String> configParameters)
Initializes the object.

Specified by:
init in interface Initializable
Parameters:
configParameters - The map of parameters.

createApplicationContext

public TilesApplicationContext createApplicationContext(Object context)
Create a TilesApplicationContext for the given context.

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


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