Package org.apache.struts.tiles2
Class TilesPluginContainer
java.lang.Object
org.apache.tiles.impl.BasicTilesContainer
org.apache.struts.tiles2.TilesPluginContainer
- All Implemented Interfaces:
AttributeEvaluatorFactoryAware
,TilesContainer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetDefinition
(String definitionName, Request request) protected String
getDefinitionsFactoryKey
(Request request) Returns the definitions factory key.Returns the proper definition factory for the given key, i.e.void
setDefinitionsFactory
(String key, 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
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
- Specified by:
getDefinition
in interfaceTilesContainer
- Overrides:
getDefinition
in classBasicTilesContainer
-
getDefinitionsFactoryKey
Returns the definitions factory key.- Parameters:
request
- The request object.- Returns:
- The needed factory key.
-