TilesContainer
with different keys, by overriding
AbstractTilesInitializer
getContainerKey
method.public class KeyedDefinitionsFactoryTilesContainerFactory extends TilesContainerFactory
KeyedDefinitionsFactoryTilesContainer
class.Modifier and Type | Field and Description |
---|---|
protected TilesApplicationContext |
applicationContext
Deprecated.
The application context.
|
static String |
CONTAINER_KEYS_INIT_PARAM
Deprecated.
The name of the initialization parameter that will contain a
comma-separated list of keys to use.
|
static String |
KEY_EXTRACTOR_CLASS_INIT_PARAM
Deprecated.
Init parameter name that contains the class name for the key extractor.
|
ATTRIBUTE_EVALUATOR_INIT_PARAM, CONTAINER_FACTORY_INIT_PARAM, CONTAINER_FACTORY_MUTABLE_INIT_PARAM, CONTEXT_FACTORY_INIT_PARAM, defaultConfiguration, DEFINITIONS_FACTORY_INIT_PARAM, PREPARER_FACTORY_INIT_PARAM, RENDERER_FACTORY_INIT_PARAM, REQUEST_CONTEXT_FACTORY_INIT_PARAM
Constructor and Description |
---|
KeyedDefinitionsFactoryTilesContainerFactory()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
DefinitionsFactory |
createDefinitionsFactory(Object context)
Deprecated.
|
DefinitionsFactory |
createDefinitionsFactory(TilesApplicationContext context)
Deprecated.
Creates a definitions factory.
|
MutableTilesContainer |
createMutableTilesContainer(TilesApplicationContext context)
Deprecated.
Creates a mutable Tiles container.
|
TilesContainer |
createTilesContainer(TilesApplicationContext context)
Deprecated.
Creates an immutable Tiles container.
|
protected void |
postCreationOperations(TilesRequestContextFactory contextFactory,
TilesApplicationContext tilesContext,
RendererFactory rendererFactory,
AttributeEvaluator evaluator,
Map<String,String> initParameters,
Map<String,String> configuration,
BasicTilesContainer container)
Deprecated.
After the creation of the elements, it is possible to do other operations that
will be done after the creation and before the assignment to the container.
|
protected void |
storeContainerDependencies(TilesApplicationContext context,
Map<String,String> initParameters,
Map<String,String> configuration,
BasicTilesContainer container)
Deprecated.
Stores container dependencies, that is called before
TilesContainer.init(Map) . |
createContainer, createContainer, createFactory, createMutableTilesContainer, createTilesContainer, getFactory, getFactory, getInitParameter, getInitParameterMap, initializeContainer, initializeContainer, resolveFactoryName, setDefaultConfiguration, setDefaultValue, storeContainerDependencies
getTilesContainerFactory
public static final String CONTAINER_KEYS_INIT_PARAM
public static final String KEY_EXTRACTOR_CLASS_INIT_PARAM
protected TilesApplicationContext applicationContext
public KeyedDefinitionsFactoryTilesContainerFactory()
public MutableTilesContainer createMutableTilesContainer(TilesApplicationContext context)
createMutableTilesContainer
in class TilesContainerFactory
context
- The Tiles application context object.public TilesContainer createTilesContainer(TilesApplicationContext context)
createTilesContainer
in class TilesContainerFactory
context
- The Tiles application context object.@Deprecated public DefinitionsFactory createDefinitionsFactory(Object context)
createDefinitionsFactory(TilesApplicationContext)
.context
- The context object to use.TilesContainerFactoryException
- If something goes wrong.public DefinitionsFactory createDefinitionsFactory(TilesApplicationContext context)
context
- The Tiles application context object to use.TilesContainerFactoryException
- If something goes wrong.protected void storeContainerDependencies(TilesApplicationContext context, Map<String,String> initParameters, Map<String,String> configuration, BasicTilesContainer container)
TilesContainer.init(Map)
.storeContainerDependencies
in class TilesContainerFactory
context
- The (application) context object to use.initParameters
- The initialization parameters.configuration
- The merged configuration parameters (both defaults
and context ones).container
- The container to use.protected void postCreationOperations(TilesRequestContextFactory contextFactory, TilesApplicationContext tilesContext, RendererFactory rendererFactory, AttributeEvaluator evaluator, Map<String,String> initParameters, Map<String,String> configuration, BasicTilesContainer container)
postCreationOperations
in class TilesContainerFactory
contextFactory
- The Tiles context factory.tilesContext
- The Tiles application context.rendererFactory
- The renderer factory.evaluator
- The attribute evaluator.initParameters
- The initialization parameters.configuration
- The merged configuration parameters (both defaults
and context ones).container
- The container to use.Copyright © 2017. All rights reserved.