de.miethxml.toolkit.container
Class DefaultApplicationContainer

java.lang.Object
  extended byde.miethxml.toolkit.container.DefaultApplicationContainer
All Implemented Interfaces:
ApplicationShutdown, Launcher, PluginReceiver
Direct Known Subclasses:
ApplicationContainer

public class DefaultApplicationContainer
extends java.lang.Object
implements PluginReceiver, ApplicationShutdown, Launcher

Author:
simon

Field Summary
protected  StoreableConfigurationImpl appConfig
           
protected  org.apache.avalon.framework.logger.LogKitLogger appLogger
           
protected  ApplicationSetup appSetup
           
protected  java.util.Hashtable componentobjects
           
protected  java.util.ArrayList components
           
protected  org.apache.avalon.framework.configuration.Configuration config
           
protected  boolean configureEnabled
           
protected  org.apache.avalon.framework.context.DefaultContext context
           
protected  boolean contextEnabled
           
protected  boolean guiconfigured
           
protected  org.apache.log.Hierarchy h
           
protected  boolean initializeEnabed
           
protected  java.util.Hashtable launchParameters
           
protected  org.apache.log.Logger log
           
protected  boolean logEnabled
           
protected  org.apache.avalon.framework.service.DefaultServiceManager manager
           
protected  boolean parameterEnabled
           
protected  org.apache.avalon.framework.parameters.Parameters params
           
protected  java.util.Collection pluginInterfaces
           
protected  PluginManager pluginManager
           
protected  java.util.HashSet pluginRoles
           
protected  java.util.Hashtable roles
           
protected  boolean serviceEnabled
           
protected  SplashScreen splash
           
protected  boolean startEnabled
           
static java.lang.String XCONF_FILE
           
 
Fields inherited from interface de.miethxml.toolkit.plugins.PluginReceiver
RECEIVE_ALL_PLUGINS
 
Fields inherited from interface de.miethxml.toolkit.application.ApplicationShutdown
ROLE
 
Constructor Summary
DefaultApplicationContainer()
           
 
Method Summary
 void addPlugin(java.lang.Object plugin)
           
protected  void configureComponents()
           
protected  void contextualizeComponents()
           
 void disposeComponents()
           
protected  void enableLoggingComponents()
           
 java.util.Collection getInterfaces()
           
protected  void guiConfigure()
           
protected  void handleApplicationLifecycle()
           
 void init()
           
 void init(java.util.Hashtable param)
           
 void initializeApplication()
           
protected  void initializeComponents()
           
 void lauchApplication()
           
protected  void loadComponent()
           
static void main(java.lang.String[] args)
           
protected  void parameterizeComponents()
           
protected  void processPluginObject(java.lang.Object plugin)
           
 void removePlugin(java.lang.Object obj)
           
protected  void serviceComponents()
           
 void setLaunchParameters(java.util.Hashtable launchParameters)
           
 void setProperty(java.lang.String key, java.lang.String value)
           
 void shutdownApplication()
           
protected  void startComponents()
           
protected  void stopComponents()
           
protected  void storeConfiguration()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XCONF_FILE

public static java.lang.String XCONF_FILE

log

protected org.apache.log.Logger log

manager

protected org.apache.avalon.framework.service.DefaultServiceManager manager

pluginManager

protected PluginManager pluginManager

appSetup

protected ApplicationSetup appSetup

config

protected org.apache.avalon.framework.configuration.Configuration config

appLogger

protected org.apache.avalon.framework.logger.LogKitLogger appLogger

launchParameters

protected java.util.Hashtable launchParameters

components

protected java.util.ArrayList components

pluginRoles

protected java.util.HashSet pluginRoles

componentobjects

protected java.util.Hashtable componentobjects

roles

protected java.util.Hashtable roles

context

protected org.apache.avalon.framework.context.DefaultContext context

appConfig

protected StoreableConfigurationImpl appConfig

params

protected org.apache.avalon.framework.parameters.Parameters params

pluginInterfaces

protected java.util.Collection pluginInterfaces

logEnabled

protected boolean logEnabled

contextEnabled

protected boolean contextEnabled

serviceEnabled

protected boolean serviceEnabled

configureEnabled

protected boolean configureEnabled

parameterEnabled

protected boolean parameterEnabled

initializeEnabed

protected boolean initializeEnabed

startEnabled

protected boolean startEnabled

guiconfigured

protected boolean guiconfigured

splash

protected SplashScreen splash

h

protected org.apache.log.Hierarchy h
Constructor Detail

DefaultApplicationContainer

public DefaultApplicationContainer()
Method Detail

initializeApplication

public void initializeApplication()

lauchApplication

public void lauchApplication()

loadComponent

protected void loadComponent()

initializeComponents

protected void initializeComponents()

disposeComponents

public void disposeComponents()

serviceComponents

protected void serviceComponents()

init

public void init()

startComponents

protected void startComponents()

stopComponents

protected void stopComponents()

processPluginObject

protected void processPluginObject(java.lang.Object plugin)

guiConfigure

protected void guiConfigure()

enableLoggingComponents

protected void enableLoggingComponents()

setLaunchParameters

public void setLaunchParameters(java.util.Hashtable launchParameters)
Parameters:
launchParameters - The launchParameters to set.

contextualizeComponents

protected void contextualizeComponents()

parameterizeComponents

protected void parameterizeComponents()

configureComponents

protected void configureComponents()

addPlugin

public void addPlugin(java.lang.Object plugin)
Specified by:
addPlugin in interface PluginReceiver

getInterfaces

public java.util.Collection getInterfaces()
Specified by:
getInterfaces in interface PluginReceiver

removePlugin

public void removePlugin(java.lang.Object obj)
Specified by:
removePlugin in interface PluginReceiver

shutdownApplication

public void shutdownApplication()
Specified by:
shutdownApplication in interface ApplicationShutdown

init

public void init(java.util.Hashtable param)
Specified by:
init in interface Launcher

setProperty

public void setProperty(java.lang.String key,
                        java.lang.String value)
Specified by:
setProperty in interface Launcher

main

public static void main(java.lang.String[] args)

storeConfiguration

protected void storeConfiguration()

handleApplicationLifecycle

protected void handleApplicationLifecycle()