|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectorg.apache.tiles.factory.AbstractTilesContainerFactory
org.apache.tiles.factory.TilesContainerFactory
public class TilesContainerFactory
Factory provided for convenience. This factory creates a default implementation of the container, initializes, and puts it into service.
| Field Summary | |
|---|---|
static String |
ATTRIBUTE_EVALUATOR_INIT_PARAM
Initialization parameter that represents the attribute evaluator class name. |
static String |
CONTAINER_FACTORY_INIT_PARAM
Deprecated. Use AbstractTilesContainerFactory.CONTAINER_FACTORY_INIT_PARAM. |
static String |
CONTAINER_FACTORY_MUTABLE_INIT_PARAM
Initialization parameter that indicates if the container factory is mutable. |
static String |
CONTEXT_FACTORY_INIT_PARAM
Deprecated. Use AbstractTilesApplicationContextFactory.APPLICATION_CONTEXT_FACTORY_INIT_PARAM or
REQUEST_CONTEXT_FACTORY_INIT_PARAM. |
protected Map<String,String> |
defaultConfiguration
The default configuration to be used by the factory. |
static String |
DEFINITIONS_FACTORY_INIT_PARAM
Initialization parameter that represents the definitions factory class name. |
static String |
PREPARER_FACTORY_INIT_PARAM
Initialization parameter that represents the preparer factory class name. |
static String |
RENDERER_FACTORY_INIT_PARAM
Initialization parameter that represents the renderer factory class name. |
static String |
REQUEST_CONTEXT_FACTORY_INIT_PARAM
Initialization parameter that represents the context factory class name. |
| Constructor Summary | |
|---|---|
TilesContainerFactory()
|
|
| Method Summary | |
|---|---|
TilesContainer |
createContainer(Object context)
Deprecated. Use createContainer(TilesApplicationContext). |
TilesContainer |
createContainer(TilesApplicationContext context)
Creates a Tiles container. |
protected static Object |
createFactory(Map<String,String> configuration,
String initParameterName)
Creates a factory instance. |
TilesContainer |
createMutableTilesContainer(Object context)
Deprecated. Use createMutableTilesContainer(TilesApplicationContext). |
MutableTilesContainer |
createMutableTilesContainer(TilesApplicationContext context)
Creates a mutable Tiles container. |
TilesContainer |
createTilesContainer(Object context)
Deprecated. Use createTilesContainer(TilesApplicationContext). |
TilesContainer |
createTilesContainer(TilesApplicationContext context)
Creates an immutable Tiles container. |
static TilesContainerFactory |
getFactory(Object context)
Deprecated. Use AbstractTilesContainerFactory#getTilesContainerFactory(Object). |
static TilesContainerFactory |
getFactory(Object context,
Map<String,String> defaults)
Deprecated. Use AbstractTilesContainerFactory#getTilesContainerFactory(Object)
and then setDefaultConfiguration(Map). |
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. Use initializeContainer(TilesApplicationContext, BasicTilesContainer). |
protected void |
initializeContainer(TilesApplicationContext context,
BasicTilesContainer container)
Initializes a container. |
protected void |
postCreationOperations(TilesRequestContextFactory contextFactory,
TilesApplicationContext tilesContext,
RendererFactory rendererFactory,
AttributeEvaluator evaluator,
Map<String,String> initParameters,
Map<String,String> configuration,
BasicTilesContainer container)
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)
Resolves a factory class name. |
void |
setDefaultConfiguration(Map<String,String> defaultConfiguration)
Sets the default configuration parameters. |
void |
setDefaultValue(String key,
String value)
Sets one default configuration parameter value. |
protected void |
storeContainerDependencies(Object context,
Map<String,String> initParameters,
Map<String,String> configuration,
BasicTilesContainer container)
Stores container dependencies, that is called before TilesContainer.init(Map). |
protected void |
storeContainerDependencies(TilesApplicationContext context,
Map<String,String> initParameters,
Map<String,String> configuration,
BasicTilesContainer container)
Stores container dependencies, that is called before TilesContainer.init(Map). |
| Methods inherited from class org.apache.tiles.factory.AbstractTilesContainerFactory |
|---|
getTilesContainerFactory |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
protected Map<String,String> defaultConfiguration
| Constructor Detail |
|---|
public TilesContainerFactory()
| Method Detail |
|---|
@Deprecated public static TilesContainerFactory getFactory(Object context)
AbstractTilesContainerFactory#getTilesContainerFactory(Object).
context - the executing applications context. Typically a
ServletContext or PortletContext
TilesContainerFactoryException - if an error occurs creating the
factory.
public static TilesContainerFactory getFactory(Object context,
Map<String,String> defaults)
AbstractTilesContainerFactory#getTilesContainerFactory(Object)
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 AbstractTilesContainerFactorycontext - 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)
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||