Package org.apache.struts.tiles2
Class TilesPluginContainer
java.lang.Object
org.apache.tiles.impl.BasicTilesContainer
org.apache.struts.tiles2.TilesPluginContainer
- All Implemented Interfaces:
org.apache.tiles.evaluator.AttributeEvaluatorFactoryAware
,org.apache.tiles.TilesContainer
public class TilesPluginContainer
extends org.apache.tiles.impl.BasicTilesContainer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.tiles.Definition
getDefinition
(String definitionName, org.apache.tiles.request.Request request) protected String
getDefinitionsFactoryKey
(org.apache.tiles.request.Request request) Returns the definitions factory key.org.apache.tiles.definition.DefinitionsFactory
Returns the proper definition factory for the given key, i.e.void
setDefinitionsFactory
(String key, org.apache.tiles.definition.DefinitionsFactory definitionsFactory) Set the definitions factory.Methods inherited from class org.apache.tiles.impl.BasicTilesContainer
endContext, evaluate, getApplicationContext, getAttributeContext, getContext, getContextStack, getDefinitionsFactory, getPreparerFactory, isValidDefinition, popContext, prepare, pushContext, render, render, render, render, renderContext, setApplicationContext, setAttributeEvaluatorFactory, setDefinitionsFactory, setPreparerFactory, setRendererFactory, startContext
-
Constructor Details
-
TilesPluginContainer
public TilesPluginContainer()
-
-
Method Details
-
getProperDefinitionsFactory
Returns the proper definition factory for the given key, i.e. if the key is not present,null
will be returned.- Parameters:
key
- The key of the needed definitions factory.- Returns:
- the definitions factory used by this container. If the key is not
valid,
null
will be returned.
-
setDefinitionsFactory
public void setDefinitionsFactory(String key, org.apache.tiles.definition.DefinitionsFactory definitionsFactory) Set the definitions factory. This method first ensures that the container has not yet been initialized.- Parameters:
key
- The key under which the definitions factory is cataloged.definitionsFactory
- the definitions factory for this instance.- Since:
- 2.1.0
-
getDefinition
public org.apache.tiles.Definition getDefinition(String definitionName, org.apache.tiles.request.Request request) - Specified by:
getDefinition
in interfaceorg.apache.tiles.TilesContainer
- Overrides:
getDefinition
in classorg.apache.tiles.impl.BasicTilesContainer
-
getDefinitionsFactoryKey
Returns the definitions factory key.- Parameters:
request
- The request object.- Returns:
- The needed factory key.
-