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
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDefinition(String definitionName, Request request) protected StringgetDefinitionsFactoryKey(Request request) Returns the definitions factory key.Returns the proper definition factory for the given key, i.e.voidsetDefinitionsFactory(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,nullwill 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,
nullwill 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:
getDefinitionin interfaceTilesContainer- Overrides:
getDefinitionin classBasicTilesContainer
-
getDefinitionsFactoryKey
Returns the definitions factory key.- Parameters:
request- The request object.- Returns:
- The needed factory key.
-