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