AbstractTilesContainerFactory
or use an
already extended class. Parameter-based initialization is no longer
supported.public class TilesContainerFactory extends AbstractTilesContainerFactory
Modifier and Type | Field and Description |
---|---|
static String |
ATTRIBUTE_EVALUATOR_INIT_PARAM
Deprecated.
Initialization parameter that represents the attribute evaluator class
name.
|
static String |
CONTAINER_FACTORY_INIT_PARAM
Deprecated.
|
static String |
CONTAINER_FACTORY_MUTABLE_INIT_PARAM
Deprecated.
Initialization parameter that indicates if the container factory is
mutable.
|
static String |
CONTEXT_FACTORY_INIT_PARAM
|
protected Map<String,String> |
defaultConfiguration
Deprecated.
The default configuration to be used by the factory.
|
static String |
DEFINITIONS_FACTORY_INIT_PARAM
Deprecated.
Initialization parameter that represents the definitions factory class
name.
|
static String |
PREPARER_FACTORY_INIT_PARAM
Deprecated.
Initialization parameter that represents the preparer factory class name.
|
static String |
RENDERER_FACTORY_INIT_PARAM
Deprecated.
Initialization parameter that represents the renderer factory class name.
|
static String |
REQUEST_CONTEXT_FACTORY_INIT_PARAM
Deprecated.
Initialization parameter that represents the context factory class name.
|
Constructor and Description |
---|
TilesContainerFactory()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
TilesContainer |
createContainer(Object context)
Deprecated.
|
TilesContainer |
createContainer(TilesApplicationContext context)
Deprecated.
Creates a Tiles container.
|
protected static Object |
createFactory(Map<String,String> configuration,
String initParameterName)
Deprecated.
Creates a factory instance.
|
TilesContainer |
createMutableTilesContainer(Object context)
Deprecated.
|
MutableTilesContainer |
createMutableTilesContainer(TilesApplicationContext context)
Deprecated.
Creates a mutable Tiles container.
|
TilesContainer |
createTilesContainer(Object context)
Deprecated.
|
TilesContainer |
createTilesContainer(TilesApplicationContext context)
Deprecated.
Creates an immutable Tiles container.
|
static TilesContainerFactory |
getFactory(Object context)
|
static TilesContainerFactory |
getFactory(Object context,
Map<String,String> defaults)
Deprecated.
|
protected static String |
getInitParameter(Object context,
String parameterName)
Deprecated.
Do not use.
|
protected static Map<String,String> |
getInitParameterMap(Object context)
Deprecated.
Do not use.
|
protected void |
initializeContainer(Object context,
BasicTilesContainer container)
Deprecated.
|
protected void |
initializeContainer(TilesApplicationContext context,
BasicTilesContainer container)
Deprecated.
Initializes a 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 static String |
resolveFactoryName(Map<String,String> configuration,
String parameterName)
Deprecated.
Resolves a factory class name.
|
void |
setDefaultConfiguration(Map<String,String> defaultConfiguration)
Deprecated.
Sets the default configuration parameters.
|
void |
setDefaultValue(String key,
String value)
Deprecated.
Sets one default configuration parameter value.
|
protected void |
storeContainerDependencies(Object context,
Map<String,String> initParameters,
Map<String,String> configuration,
BasicTilesContainer 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) . |
getTilesContainerFactory
public static final String CONTAINER_FACTORY_INIT_PARAM
AbstractTilesContainerFactory.CONTAINER_FACTORY_INIT_PARAM
.public static final String CONTAINER_FACTORY_MUTABLE_INIT_PARAM
public static final String CONTEXT_FACTORY_INIT_PARAM
AbstractTilesApplicationContextFactory.APPLICATION_CONTEXT_FACTORY_INIT_PARAM
or
REQUEST_CONTEXT_FACTORY_INIT_PARAM
.public static final String REQUEST_CONTEXT_FACTORY_INIT_PARAM
public static final String DEFINITIONS_FACTORY_INIT_PARAM
public static final String PREPARER_FACTORY_INIT_PARAM
public static final String RENDERER_FACTORY_INIT_PARAM
public static final String ATTRIBUTE_EVALUATOR_INIT_PARAM
@Deprecated public static TilesContainerFactory getFactory(Object context)
context
- the executing applications context. Typically a
ServletContext or PortletContextTilesContainerFactoryException
- if an error occurs creating the
factory.public static TilesContainerFactory getFactory(Object context, Map<String,String> defaults)
AbstractTilesContainerFactory.getTilesContainerFactory(TilesApplicationContext)
and then setDefaultConfiguration(Map)
.context
- the executing applications context. Typically a
ServletContext or PortletContextdefaults
- Default configuration parameters values, used if the
context object has not the corresponding parameters.TilesContainerFactoryException
- if an error occurs creating the
factory.@Deprecated public TilesContainer createContainer(Object context)
createContainer(TilesApplicationContext)
.context
- The (application) context object.TilesContainerFactoryException
- If something goes wrong during
instantiation.public TilesContainer createContainer(TilesApplicationContext context)
createContainer
in class AbstractTilesContainerFactory
context
- The Tiles application context object.public void setDefaultConfiguration(Map<String,String> defaultConfiguration)
defaultConfiguration
- The default configuration parameters.public void setDefaultValue(String key, String value)
key
- The key of the configuration parameter.value
- The value of the configuration parameter.@Deprecated public TilesContainer createTilesContainer(Object context)
createTilesContainer(TilesApplicationContext)
.context
- The (application) context object.TilesContainerFactoryException
- If something goes wrong during
initialization.public TilesContainer createTilesContainer(TilesApplicationContext context)
context
- The Tiles application context object.TilesContainerFactoryException
- If something goes wrong during
initialization.@Deprecated public TilesContainer createMutableTilesContainer(Object context)
createMutableTilesContainer(TilesApplicationContext)
.context
- The (application) context object.TilesContainerFactoryException
- If something goes wrong during
initialization.public MutableTilesContainer createMutableTilesContainer(TilesApplicationContext context)
context
- The Tiles application context object.TilesContainerFactoryException
- If something goes wrong during
initialization.@Deprecated protected void initializeContainer(Object context, BasicTilesContainer container)
initializeContainer(TilesApplicationContext, BasicTilesContainer)
.context
- The (application) context object to use.container
- The container to be initialized.TilesContainerFactoryException
- If something goes wrong during
initialization.protected void initializeContainer(TilesApplicationContext context, BasicTilesContainer container)
context
- The Tiles application context object to use.container
- The container to be initialized.TilesContainerFactoryException
- If something goes wrong during
initialization.protected void storeContainerDependencies(Object context, Map<String,String> initParameters, Map<String,String> configuration, BasicTilesContainer container)
storeContainerDependencies(TilesApplicationContext, Map, Map, BasicTilesContainer)
.TilesContainer.init(Map)
.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.TilesContainerFactoryException
- If something goes wrong during
initialization.protected void storeContainerDependencies(TilesApplicationContext context, Map<String,String> initParameters, Map<String,String> configuration, BasicTilesContainer container)
TilesContainer.init(Map)
.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.TilesContainerFactoryException
- If something goes wrong during
initialization.protected void postCreationOperations(TilesRequestContextFactory contextFactory, TilesApplicationContext tilesContext, RendererFactory rendererFactory, AttributeEvaluator evaluator, Map<String,String> initParameters, Map<String,String> configuration, BasicTilesContainer container)
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.protected static Object createFactory(Map<String,String> configuration, String initParameterName)
configuration
- The merged configuration parameters (both defaults
and context ones).initParameterName
- The initialization parameter name from which the
class name is got.TilesContainerFactoryException
- If something goes wrong during
creation.protected static String resolveFactoryName(Map<String,String> configuration, String parameterName)
configuration
- The merged configuration parameters (both defaults
and context ones).parameterName
- The name of the initialization parameter to use.TilesContainerFactoryException
- If something goes wrong during
resolution.@Deprecated protected static String getInitParameter(Object context, String parameterName)
context
- The (application) context object to use.parameterName
- The parameter name to retrieve.TilesContainerFactoryException
- If the context has not been
recognized.@Deprecated protected static Map<String,String> getInitParameterMap(Object context)
context
- The (application) context object to use.TilesContainerFactoryException
- If the context object has not been
recognized.Copyright © 2017. All rights reserved.