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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.mentawai.core.ApplicationManager
ApplicationManager.Environment
 
Field Summary
 
Fields inherited from class org.mentawai.core.ApplicationManager
ACCESSDENIED, ACTION, ADD, AJAX, ALREADY, APPLICATION, BACK, BLOCKED, container, CONTEXT_PATH, CREATED, DEFAULT_ENVIRONMENT, EDIT, ERROR, EXCEPTION, EXTENSION, HTML, INDEX, INPUT, JSON, JSP, LIST, LOGIN, MAIN, MENTAWAI_BUILD, MENTAWAI_VERSION, NEXT, NOT_FOUND, OUTPUT, PORT, REDIR, REMOVED, REQUEST, SESSION, SHOW, STREAM, SUCCESS, TEST, UPDATED, XML
 
Constructor Summary
MultiApplicationManager()
          Default constructor, capable to call the registerManagers() method.
 
Method Summary
 ConnectionHandler createConnectionHandler()
           
 SessionHandler createSessionHandler()
           
 Bean getComponent(String name)
          Gets an IOC component from this application manager.
 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 loadFilters()
          Override this method to register your Filters.
 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 onStarted(Context context)
           
 void register(Class<? extends ApplicationManager> manager)
          Call this method to register an ApplicationManager.
abstract  void registerManagers()
          Abstract method to alow the registration the ApplicationManagers.
 void setupDB()
           
 void setupIoC()
          Override this method to register your IoC Components.
 
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, addLists, addLists, addLocale, addLocale, addLocales, addLocales, addLocalizedLists, addLocalizedLists, ajax, autowire, autowire, autowire, autoWiring, autoWiring, aw, aw, bean, chain, chain, chain, chain, configureActions, createJPAHandler, destroy, di, di, exception, filter, filter, filter, filter, filter, filterLast, filterLast, filterLast, fwd, fwd, getActionConfig, getActionConfig, getActions, getApplication, getBeanConfig, getBeanManager, getComponentNames, getComponents, getConnectionHandler, getConsequenceProvider, getContainer, getContextPath, getDefaultAction, getEnvironment, getExtension, getGlobalConsequence, getGlobalFilters, getGlobalFilters, getGlobalFilters, getInstance, getParent, getProperties, getProps, getProps, getRealPath, getReqCharEncoding, getViewDir, init, internal, ioc, ioc, ioc, ioc, ioc, ioc, ioc, ioc, ioc, ioc, ioc, ioc, on, on, redir, redir, redir, redir, redir, redir, redir, redir, redir, redir, removeActionConfig, removeActionPackage, reset, result, ruby, ruby, ruby, setAutoView, setAutowireEverything, setConnectionHandler, setConsequenceProvider, setDateMaskForEverything, setDebugMode, setDebugMode, setDefaultAction, setEnvironment, setJPAHandler, setRealPath, setReloadable, setReloadMode, setRemoveActionFromName, setReqCharEncoding, setSessionHandler, setStatsMode, setViewDir, setWebappPath, spring, spring, stream, string, 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:
Exception - about the ApplicationManager instanciation
Method Detail

registerManagers

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

Throws:
Exception - about the ApplicationManager instanciation

register

public void register(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.

createConnectionHandler

public final ConnectionHandler createConnectionHandler()
Overrides:
createConnectionHandler in class ApplicationManager

createSessionHandler

public final SessionHandler createSessionHandler()
Overrides:
createSessionHandler in class ApplicationManager

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

setupIoC

public final void setupIoC()
Description copied from class: ApplicationManager
Override this method to register your IoC Components.

Overrides:
setupIoC in class ApplicationManager

loadFilters

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

Overrides:
loadFilters in class ApplicationManager

setupDB

public final void setupDB()
Overrides:
setupDB 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 Exception
Description copied from class: ApplicationManager
Override this method to control the data list loading process.

Overrides:
loadLists in class ApplicationManager
Throws:
Exception

onStarted

public final void onStarted(Context context)
Overrides:
onStarted in class ApplicationManager

getComponent

public final Bean getComponent(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 Iterator<Dependency> getDependencies()
Overrides:
getDependencies in class ApplicationManager


Copyright © 2013. All Rights Reserved.