org.mentawai.core
Class MultiApplicationManager

java.lang.Object
  extended by org.mentawai.core.ApplicationManager
      extended by org.mentawai.core.MultiApplicationManager

public abstract class MultiApplicationManager
extends ApplicationManager

Author:
Marvin H. Froeder

Field Summary
 
Fields inherited from class org.mentawai.core.ApplicationManager
ACCESSDENIED, ACTION, ALREADY, APPLICATION, BLOCKED, CREATED, ERROR, EXCEPTION, EXTENSION, INDEX, INPUT, JSP, LIST, LOGIN, MAIN, MENTAWAI_BUILD, MENTAWAI_VERSION, OUTPUT, REDIR, REMOVED, REQUEST, SESSION, SHOW, SUCCESS, TEST, UPDATED
 
Constructor Summary
MultiApplicationManager()
          Default constructor, capable to call the registerManagers() method.
 
Method Summary
 Component getComponent(java.lang.String name)
          Gets an IOC component from this application manager.
 java.util.Iterator<Dependency> getDependencies()
           
 void init(Context application)
          Override this method to do any initialization for your web application.
 void loadActions()
          Override this method to register actions and filters in this application manager.
 void loadBeans()
          Override this method to register your mentabeans.
 void loadFormatters()
          Override this method to define formatters that can be used by mtw:out tag
 void loadLists()
          Override this method to control the data list loading process.
 void loadLocales()
          Override this method to specify the supported locales for your application.
 void register(java.lang.Class<? extends ApplicationManager> manager)
          Call this method to register an ApplicationManager.
abstract  void registerManagers()
          Abstract method to alow the registration the ApplicationManagers.
 
Methods inherited from class org.mentawai.core.ApplicationManager
action, action, action, action, add, add, addActionConfig, addActionPackage, addBeanConfig, addComponent, addDependency, addDependency, addGlobalConsequence, addGlobalFilter, addGlobalFilter, addGlobalFilter, addGlobalFilter, addGlobalFilter, addList, addList, ajax, autoWiring, autoWiring, aw, aw, bean, chain, chain, chain, chain, configureActions, destroy, di, di, filter, filter, filter, filter, filter, filterLast, filterLast, filterLast, fwd, getActionConfig, getActionConfig, getActions, getApplication, getBeanConfig, getDefaultAction, getGlobalConsequence, getGlobalFilters, getGlobalFilters, getGlobalFilters, getInstance, getProperties, getRealPath, getReqCharEncoding, getViewDir, init, ioc, ioc, ioc, on, on, redir, redir, redir, redir, removeActionConfig, removeActionPackage, reset, ruby, ruby, ruby, setAutoView, setConsequenceProvider, setDateMaskForEverything, setDebugMode, setDebugMode, setDefaultAction, setRealPath, setReloadable, setReloadMode, setReqCharEncoding, setStatsMode, setViewDir, spring, stream, string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiApplicationManager

public MultiApplicationManager()
Default constructor, capable to call the registerManagers() method.

Throws:
java.lang.Exception - about the ApplicationManager instanciation
Method Detail

registerManagers

public abstract void registerManagers()
Abstract method to alow the registration the ApplicationManagers.

Throws:
java.lang.Exception - about the ApplicationManager instanciation

register

public void register(java.lang.Class<? extends ApplicationManager> manager)
Call this method to register an ApplicationManager.

Parameters:
manager - The application manager to register.

init

public final void init(Context application)
Description copied from class: ApplicationManager
Override this method to do any initialization for your web application.

Overrides:
init in class ApplicationManager
Parameters:
application - The application context of your web application.

loadActions

public final void loadActions()
Description copied from class: ApplicationManager
Override this method to register actions and filters in this application manager.

Overrides:
loadActions in class ApplicationManager

loadBeans

public final void loadBeans()
Description copied from class: ApplicationManager
Override this method to register your mentabeans.

Overrides:
loadBeans in class ApplicationManager

loadLocales

public final void loadLocales()
Description copied from class: ApplicationManager
Override this method to specify the supported locales for your application.

Overrides:
loadLocales in class ApplicationManager

loadFormatters

public final void loadFormatters()
Description copied from class: ApplicationManager
Override this method to define formatters that can be used by mtw:out tag

Overrides:
loadFormatters in class ApplicationManager

loadLists

public final void loadLists()
                     throws java.io.IOException
Description copied from class: ApplicationManager
Override this method to control the data list loading process.

Overrides:
loadLists in class ApplicationManager
Throws:
java.io.IOException

getComponent

public final Component getComponent(java.lang.String name)
Description copied from class: ApplicationManager
Gets an IOC component from this application manager.

Overrides:
getComponent in class ApplicationManager
Returns:
The ioc component

getDependencies

public final java.util.Iterator<Dependency> getDependencies()
Overrides:
getDependencies in class ApplicationManager


Copyright © 2005 Mentawai Team. All Rights Reserved.