Class TilesPluginContainer

java.lang.Object
org.apache.tiles.impl.BasicTilesContainer
org.apache.struts.tiles2.TilesPluginContainer
All Implemented Interfaces:
AttributeEvaluatorFactoryAware, TilesContainer

public class TilesPluginContainer extends BasicTilesContainer
  • Constructor Details

    • TilesPluginContainer

      public TilesPluginContainer()
  • Method Details

    • getProperDefinitionsFactory

      public DefinitionsFactory getProperDefinitionsFactory(String key)
      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, 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 Definition getDefinition(String definitionName, Request request)
      Specified by:
      getDefinition in interface TilesContainer
      Overrides:
      getDefinition in class BasicTilesContainer
    • getDefinitionsFactoryKey

      protected String getDefinitionsFactoryKey(Request request)
      Returns the definitions factory key.
      Parameters:
      request - The request object.
      Returns:
      The needed factory key.