public class TapestryAppInitializer extends Object
Registry
. The Registry contains
TapestryIOCModule
and TapestryModule
, 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 and Description |
---|
TapestryAppInitializer(org.slf4j.Logger logger,
String appPackage,
String appName) |
TapestryAppInitializer(org.slf4j.Logger logger,
String appPackage,
String appName,
String aliasMode)
Deprecated.
Use
TapestryAppInitializer(Logger, String, String) instead. To be removed
in 5.4. |
TapestryAppInitializer(org.slf4j.Logger logger,
SymbolProvider appProvider,
String appName,
String executionModes) |
TapestryAppInitializer(org.slf4j.Logger logger,
SymbolProvider appProvider,
String appName,
String aliasMode,
String executionModes)
Deprecated.
Use
TapestryAppInitializer(Logger, SymbolProvider, String, String) instead.
To be removed in 5.4. |
Modifier and Type | Method and Description |
---|---|
void |
addModules(Class... moduleClasses) |
void |
addModules(ModuleDef... moduleDefs)
Adds additional modules.
|
void |
announceStartup() |
Registry |
createRegistry() |
public TapestryAppInitializer(org.slf4j.Logger logger, String appPackage, String appName, String aliasMode)
TapestryAppInitializer(Logger, String, String)
instead. To be removed
in 5.4.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)aliasMode
- ignored (was used in 5.2)public TapestryAppInitializer(org.slf4j.Logger logger, String appPackage, String appName)
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)public TapestryAppInitializer(org.slf4j.Logger logger, SymbolProvider appProvider, String appName, String aliasMode, String executionModes)
TapestryAppInitializer(Logger, SymbolProvider, String, String)
instead.
To be removed in 5.4.logger
- logger for output confirmationappProvider
- provides symbols for the application (normally, from the ServletContext init
parameters)appName
- the name of the application (i.e., the name of the application servlet)aliasMode
- ignored (was used in 5.2 and earlier)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)public TapestryAppInitializer(org.slf4j.Logger logger, SymbolProvider appProvider, String appName, String executionModes)
logger
- logger for output confirmationappProvider
- provides symbols for the application (normally, from the ServletContext init
parameters)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)public void addModules(ModuleDef... moduleDefs)
moduleDefs
- public void addModules(Class... moduleClasses)
public Registry createRegistry()
public void announceStartup()
Copyright © 2003-2012 The Apache Software Foundation.