Class ModularTilesInitializer

  • All Implemented Interfaces:
    TilesInitializer

    public class ModularTilesInitializer
    extends java.lang.Object
    implements TilesInitializer
    Loads Tiles modules, initializes them and destroy them at the end.
    It loads all META-INF/MANIFEST.MF files, checks for the "Tiles-Initializer" property that must contain a valid class name of a TilesInitializer. After that, initializes all found initializers, one by one. When the destroy() method is called, all the initializers are then destroyed.
    Since:
    2.2.1
    Version:
    $Rev: 1297705 $ $Date: 2012-03-07 07:44:30 +1100 (Wed, 07 Mar 2012) $
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void destroy()
      Destroys the Tiles container.
      void initialize​(org.apache.tiles.request.ApplicationContext preliminaryContext)
      Initializes Tiles.
      • Methods inherited from class java.lang.Object

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

      • ModularTilesInitializer

        public ModularTilesInitializer()
    • Method Detail

      • initialize

        public void initialize​(org.apache.tiles.request.ApplicationContext preliminaryContext)
        Initializes Tiles.
        Specified by:
        initialize in interface TilesInitializer
        Parameters:
        preliminaryContext - The preliminary application context to use. It will be overwritten with the real instance later. Use a context usable under your current environment, like ServletTilesApplicationContext or PortletTilesApplicationContext.
      • destroy

        public void destroy()
        Destroys the Tiles container.
        Specified by:
        destroy in interface TilesInitializer