TilesAccess.setContainer(
org.apache.tiles.TilesApplicationContext, org.apache.tiles.TilesContainer, String)public class KeyedDefinitionsFactoryTilesContainer extends BasicTilesContainer
DefinitionsFactory
instances mapped to different keys.| Modifier and Type | Class and Description |
|---|---|
static class |
KeyedDefinitionsFactoryTilesContainer.DefaultKeyExtractor
Deprecated.
This is the default factory key.
|
static interface |
KeyedDefinitionsFactoryTilesContainer.KeyExtractor
Deprecated.
It represents an object able to return a key from a request.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFINITIONS_CONFIG_PREFIX
Deprecated.
Constant representing the prefix of the configuration parameter used to
define the tiles definition resources for a specific key.
|
protected java.util.Map<java.lang.String,DefinitionsFactory> |
key2definitionsFactory
Deprecated.
Maps definition factories to their keys.
|
protected KeyedDefinitionsFactoryTilesContainer.KeyExtractor |
keyExtractor
Deprecated.
The key extractor object.
|
DEFINITIONS_CONFIG| Constructor and Description |
|---|
KeyedDefinitionsFactoryTilesContainer()
Deprecated.
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected Definition |
getDefinition(java.lang.String definitionName,
TilesRequestContext request)
Deprecated.
Returns a definition specifying its name.
|
DefinitionsFactory |
getDefinitionsFactory(java.lang.String key)
Deprecated.
Returns a definition factory given its key.
|
protected java.lang.String |
getDefinitionsFactoryKey(TilesRequestContext request)
Deprecated.
Returns the definitions factory key.
|
DefinitionsFactory |
getProperDefinitionsFactory(java.lang.String key)
Deprecated.
Returns the proper definition factory for the given key, i.e.
|
void |
setDefinitionsFactory(java.lang.String key,
DefinitionsFactory definitionsFactory)
Deprecated.
Set the definitions factory.
|
void |
setDefinitionsFactory(java.lang.String key,
DefinitionsFactory definitionsFactory,
java.util.Map<java.lang.String,java.lang.String> initParameters)
Deprecated.
|
void |
setKeyExtractor(KeyedDefinitionsFactoryTilesContainer.KeyExtractor keyExtractor)
Deprecated.
Sets the key extractor to use.
|
checkInit, endContext, evaluate, getApplicationContext, getAttributeContext, getContext, getContextFactory, getContextStack, getDefinitionsFactory, getPreparerFactory, getRequestContextFactory, getResourceNames, getResourceString, getResourceString, init, initializeDefinitionsFactory, isValidDefinition, popContext, prepare, pushContext, render, render, render, render, render, render, renderContext, setApplicationContext, setAttributeEvaluatorFactory, setContextFactory, setDefinitionsFactory, setPreparerFactory, setRendererFactory, setRequestContextFactory, startContextpublic static final java.lang.String DEFINITIONS_CONFIG_PREFIX
protected java.util.Map<java.lang.String,DefinitionsFactory> key2definitionsFactory
protected KeyedDefinitionsFactoryTilesContainer.KeyExtractor keyExtractor
public KeyedDefinitionsFactoryTilesContainer()
public DefinitionsFactory getDefinitionsFactory(java.lang.String key)
key - The key of the needed definitions factory.public DefinitionsFactory getProperDefinitionsFactory(java.lang.String key)
null will be returned.key - The key of the needed definitions factory.null will be returned.@Deprecated
public void setDefinitionsFactory(java.lang.String key,
DefinitionsFactory definitionsFactory,
java.util.Map<java.lang.String,java.lang.String> initParameters)
setDefinitionsFactory(String, DefinitionsFactory).key - The key under which the definitions factory is catalogued.definitionsFactory - the definitions factory for this instance.initParameters - The init parameters to configure the definitions
factory.public void setDefinitionsFactory(java.lang.String key,
DefinitionsFactory definitionsFactory)
key - The key under which the definitions factory is catalogued.definitionsFactory - the definitions factory for this instance.public void setKeyExtractor(KeyedDefinitionsFactoryTilesContainer.KeyExtractor keyExtractor)
keyExtractor - The key extractor.protected Definition getDefinition(java.lang.String definitionName, TilesRequestContext request)
getDefinition in class BasicTilesContainerdefinitionName - The name of the definition to find.request - The request context.protected java.lang.String getDefinitionsFactoryKey(TilesRequestContext request)
request - The request object.