Class TapestryAppInitializer

    • Constructor Summary

      Constructors 
      Constructor Description
      TapestryAppInitializer​(org.slf4j.Logger logger, java.lang.String appPackage, java.lang.String appName)  
      TapestryAppInitializer​(org.slf4j.Logger logger, SymbolProvider appProvider, java.lang.String appName, java.lang.String executionModes)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addModules​(java.lang.Class... moduleClasses)  
      void addModules​(ModuleDef... moduleDefs)
      Adds additional modules.
      void announceStartup()
      Announce application startup, by logging (at INFO level) the names of all pages, components, mixins and services.
      Registry createRegistry()  
      static java.lang.String[] splitAtCommas​(java.lang.String value)
      Splits a value around commas.
      • Methods inherited from class java.lang.Object

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

      • TapestryAppInitializer

        public TapestryAppInitializer​(org.slf4j.Logger logger,
                                      java.lang.String appPackage,
                                      java.lang.String appName)
        Parameters:
        logger - logger for output confirmation
        appPackage - root package name to search for pages and components
        appName - the name of the application (i.e., the name of the application servlet)
      • TapestryAppInitializer

        public TapestryAppInitializer​(org.slf4j.Logger logger,
                                      SymbolProvider appProvider,
                                      java.lang.String appName,
                                      java.lang.String executionModes)
        Parameters:
        logger - logger for output confirmation
        appProvider - provides symbols for the application (normally, from the ServletContext init parameters), plus (as of 5.4) the value for symbol TapestryHttpSymbolConstants.CONTEXT_PATH
        appName - the name of the application (i.e., the name of the application servlet)
        executionModes - an optional, comma-separated list of execution modes, each of which is used to find a list of additional module classes to load (key tapestry.name-modules in appProvider, i.e., the servlet context)
    • Method Detail

      • addModules

        public void addModules​(ModuleDef... moduleDefs)
        Adds additional modules.
        Parameters:
        moduleDefs -
      • addModules

        public void addModules​(java.lang.Class... moduleClasses)
      • announceStartup

        public void announceStartup()
        Announce application startup, by logging (at INFO level) the names of all pages, components, mixins and services.
      • splitAtCommas

        public static java.lang.String[] splitAtCommas​(java.lang.String value)
        Splits a value around commas. Whitespace around the commas is removed, as is leading and trailing whitespace.
        Since:
        5.1.0.0