org.apache.tapestry5.internal
Class TapestryAppInitializer
java.lang.Object
org.apache.tapestry5.internal.TapestryAppInitializer
public class TapestryAppInitializer
- extends Object
This class is used to build the 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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TapestryAppInitializer
public TapestryAppInitializer(org.slf4j.Logger logger,
String appPackage,
String appName,
String aliasMode)
TapestryAppInitializer
public TapestryAppInitializer(org.slf4j.Logger logger,
SymbolProvider appProvider,
String appName,
String aliasMode)
- Parameters:
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 - the mode, used by the Alias service, normally "servlet"
addModules
public void addModules(ModuleDef... moduleDefs)
- Adds additional modules.
- Parameters:
moduleDefs -
addModules
public void addModules(Class... moduleClasses)
createRegistry
public Registry createRegistry()
announceStartup
public void announceStartup()
Copyright © 2006-2009 Apache Software Foundation. All Rights Reserved.