|
||||||||||
| 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
AbstractTilesContainerFactory or use an
already extended class. Parameter-based initialization is no longer
supported.
public class TilesContainerFactory
Factory provided for convenience. This factory creates a default implementation of the container, initializes, and puts it into service. Uses initialization parameters to configure all the objects created in this phase.
| Field Summary | |
|---|---|
static String |
ATTRIBUTE_EVALUATOR_INIT_PARAM
Deprecated. 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
Deprecated. 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
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 Summary | |
|---|---|
TilesContainerFactory()
Deprecated. |
|
| 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(TilesApplicationContext).
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(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 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)
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||