Class CompleteAutoloadTilesContainerFactory


  • public class CompleteAutoloadTilesContainerFactory
    extends BasicTilesContainerFactory
    Tiles container factory that:
    • create supporting objects for Velocity and FreeMarker;
    • create renderers for Velocity, FreeMarker, and Mustache templates;
    • allows using EL, MVEL and OGNL as attribute expressions;
    • allows using Wildcards and Regular Expressions in definition names;
    • loads Tiles 1.x definition files;
    • loads all the definition files that have the "tiles*.xml" pattern under /WEB-INF directory (and subdirectories) and under META-INF directories (and subdirectories) in every jar.
    Since:
    2.2.0
    Version:
    $Rev: 1332136 $ $Date: 2012-04-30 19:34:09 +1000 (Mon, 30 Apr 2012) $
    • Constructor Detail

      • CompleteAutoloadTilesContainerFactory

        public CompleteAutoloadTilesContainerFactory()
    • Method Detail

      • createDecoratedContainer

        public TilesContainer createDecoratedContainer​(TilesContainer originalContainer,
                                                       org.apache.tiles.request.ApplicationContext applicationContext)
        Instantiate the container that will be injected to child objects.
        Overrides:
        createDecoratedContainer in class BasicTilesContainerFactory
        Parameters:
        originalContainer - The original instantiated container.
        applicationContext - The Tiles application context object.
        Returns:
        The instantiated container.
      • registerAttributeRenderers

        protected void registerAttributeRenderers​(org.apache.tiles.request.render.BasicRendererFactory rendererFactory,
                                                  org.apache.tiles.request.ApplicationContext applicationContext,
                                                  TilesContainer container,
                                                  AttributeEvaluatorFactory attributeEvaluatorFactory)
        Registers attribute renderers in a BasicRendererFactory. By default, it registers delegates to StringRenderer, DispatchRenderer and DefinitionRenderer.
        Overrides:
        registerAttributeRenderers in class BasicTilesContainerFactory
        Parameters:
        rendererFactory - The renderer factory to configure.
        applicationContext - The Tiles application context.
        container - The container.
        attributeEvaluatorFactory - The attribute evaluator factory.
      • createDefaultAttributeRenderer

        protected org.apache.tiles.request.render.Renderer createDefaultAttributeRenderer​(org.apache.tiles.request.render.BasicRendererFactory rendererFactory,
                                                                                          org.apache.tiles.request.ApplicationContext applicationContext,
                                                                                          TilesContainer container,
                                                                                          AttributeEvaluatorFactory attributeEvaluatorFactory)
        Creates the default attribute renderer. By default it is an ChainedDelegateRenderer.
        Overrides:
        createDefaultAttributeRenderer in class BasicTilesContainerFactory
        Parameters:
        rendererFactory - The renderer factory to configure.
        applicationContext - The Tiles application context.
        container - The container.
        attributeEvaluatorFactory - The attribute evaluator factory.
        Returns:
        The default attribute renderer.
      • getSources

        protected java.util.List<org.apache.tiles.request.ApplicationResource> getSources​(org.apache.tiles.request.ApplicationContext applicationContext)
        Returns a list containing the resources to be parsed. By default, it returns a list containing the resource at "/WEB-INF/tiles.xml".
        Overrides:
        getSources in class BasicTilesContainerFactory
        Parameters:
        applicationContext - The Tiles application context.
        Returns:
        The resources.