|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tiles.context.ChainedTilesRequestContextFactory
public class ChainedTilesRequestContextFactory
Default implementation for TilesRequestContextFactory, that creates a chain of sub-factories, trying each one until it returns a not-null value.
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 | |
---|---|
ChainedTilesRequestContextFactory()
|
Method Summary | |
---|---|
TilesRequestContext |
createRequestContext(TilesApplicationContext context,
Object... requestItems)
Create a TilesRequestContext for the given context, request, and response. |
void |
init(Map<String,String> configParameters)
Initializes the object. |
protected void |
injectParentTilesContextFactory()
Injects this context factory to all chained context factories. |
void |
setFactories(List<TilesRequestContextFactory> factories)
Sets the factories to be used. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String FACTORY_CLASS_NAMES
public static final String[] DEFAULT_FACTORY_CLASS_NAMES
Constructor Detail |
---|
public ChainedTilesRequestContextFactory()
Method Detail |
---|
public void setFactories(List<TilesRequestContextFactory> factories)
factories
- The factories to be used.public void init(Map<String,String> configParameters)
init
in interface Initializable
configParameters
- The map of parameters.public TilesRequestContext createRequestContext(TilesApplicationContext context, Object... requestItems)
createRequestContext
in interface TilesRequestContextFactory
context
- the associated TilesApplicationContext
requestItems
- the associated request items, typically a request and a response.
protected void injectParentTilesContextFactory()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |