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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TilesPluginContainer

      public TilesPluginContainer()
  • Method Details

    • getProperDefinitionsFactory

      public org.apache.tiles.definition.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, 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 interface org.apache.tiles.TilesContainer
      Overrides:
      getDefinition in class org.apache.tiles.impl.BasicTilesContainer
    • getDefinitionsFactoryKey

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