Class TapestryAppInitializer
java.lang.Object
org.apache.tapestry5.http.internal.TapestryAppInitializer
This class is used to build the
Registry. The Registry contains
TapestryIOCModule and TapestryHttpModule, any
modules identified by addModules(Class[]) )}, plus the application module.
The application module is optional.
The application module is identified as package.services.appNameModule, where
package and the appName are specified by the caller.-
Constructor Summary
ConstructorsConstructorDescriptionTapestryAppInitializer(org.slf4j.Logger logger, String appPackage, String appName) TapestryAppInitializer(org.slf4j.Logger logger, SymbolProvider appProvider, String appName, String executionModes) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddModules(Class... moduleClasses) voidaddModules(ModuleDef... moduleDefs) Adds additional modules.voidAnnounce application startup, by logging (at INFO level) the names of all pages, components, mixins and services.static String[]splitAtCommas(String value) Splits a value around commas.
-
Constructor Details
-
TapestryAppInitializer
- Parameters:
logger- logger for output confirmationappPackage- root package name to search for pages and componentsappName- the name of the application (i.e., the name of the application servlet)
-
TapestryAppInitializer
public TapestryAppInitializer(org.slf4j.Logger logger, SymbolProvider appProvider, String appName, String executionModes) - Parameters:
logger- logger for output confirmationappProvider- provides symbols for the application (normally, from the ServletContext init parameters), plus (as of 5.4) the value for symbolTapestryHttpSymbolConstants.CONTEXT_PATHappName- 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 (keytapestry.name-modulesin appProvider, i.e., the servlet context)
-
-
Method Details
-
addModules
Adds additional modules.- Parameters:
moduleDefs-
-
addModules
-
createRegistry
-
announceStartup
Announce application startup, by logging (at INFO level) the names of all pages, components, mixins and services. -
splitAtCommas
Splits a value around commas. Whitespace around the commas is removed, as is leading and trailing whitespace.- Since:
- 5.1.0.0
-