|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eodisp.util.AbstractAppModule
public abstract class AbstractAppModule
Provides an implementation of an AppModule with empty stubs for methods that are allowed to do nothing.
Constructor Summary | |
---|---|
AbstractAppModule()
|
Method Summary | |
---|---|
abstract java.lang.String |
getId()
Returns the unique id of this application module. |
void |
postShutdown(RootApp rootApp)
Called after all application modules were shutdown. |
void |
preStartup(RootApp rootApp)
This callback is invoked before the real startup. |
void |
registerConfiguration(RootApp rootApp)
Gives the application module a change to register its configuration with the root application. |
void |
shutdown(RootApp rootApp)
This callback indicates that this application module shall shutdown. |
void |
startup(RootApp rootApp)
This callback indicates that this application module can now start. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractAppModule()
Method Detail |
---|
public abstract java.lang.String getId()
getId
in interface AppModule
public void postShutdown(RootApp rootApp)
postShutdown
in interface AppModule
rootApp
- A reference to the root applicationpublic void preStartup(RootApp rootApp)
preStartup
in interface AppModule
rootApp
- A reference to the root applicationpublic void registerConfiguration(RootApp rootApp)
The method RootApp.registerConfiguration(Configuration)
must be
called on the RootApp
class to do this. If the AppModule wants to
contribute any command line options, it can use the
RootApp.registerConfiguration(Configuration, CommandlineMapper)
instead.
The configuration that is being registered through the methods mentioned
above, is automatically loaded by the root application, so do not call
Configuration.load()
here.
registerConfiguration
in interface AppModule
rootApp
- The root application. This is the instance where the
register
methods can be invoked.RootApp
,
Configuration
public void shutdown(RootApp rootApp) throws java.lang.Exception
shutdown
in interface AppModule
rootApp
- A reference to the root application
java.lang.Exception
- Indicates that something went wrong during the application
shutdown.public void startup(RootApp rootApp) throws java.lang.Exception
In practice this means that after this method returns, the application module should be up and running. In the case of a GUI application module this probably means that the GUI is being displayed on the screen and is ready for user inputs.
startup
in interface AppModule
rootApp
- A reference to the root application
java.lang.Exception
- Indicates that something went wrong during the application
module startup.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |