biz.junginger.modules
Interface Module

All Known Implementing Classes:
AbstractModule, AbstractRMIModule, AbstractThreadModule

public interface Module

Application specific modules usually implement this interface to enable life-cycle support Modules can do not have to implement this interface (modules can be plain Java Objects too) if no dependencies exists. Modules can also extends one of the AbstractModule classes in the util package.

Subject to the MyModules Software Licence (based on the Apache Software License).
Copyright (c) 2003 Markus Oliver Junginger. All rights reserved.
http://www.junginger.biz

Version:
$Id: $
Author:
Markus Oliver Junginger

Method Summary
 void moduleDestroy()
          Destroys the module.
 void moduleInit(java.util.Map modules)
          Initialization phase TWO of the module.
 void modulePrepare(java.util.Properties properties)
          Initialization phase ONE of the module.
 void moduleStart()
          The module should activate itself if nessesary (depending on the application only few modules have to be started).
 

Method Detail

modulePrepare

public void modulePrepare(java.util.Properties properties)
                   throws java.lang.Exception
Initialization phase ONE of the module. Its individual dependencies ARE NOT met. To support multi-threading more efficiently, the module can prepare itself as much as possible at this point.

Throws:
java.lang.Exception

moduleInit

public void moduleInit(java.util.Map modules)
                throws java.lang.Exception
Initialization phase TWO of the module. Its individual dependencies ARE met. This is the main initialization phase and the module can use other modules, on which it depends.

Throws:
java.lang.Exception

moduleStart

public void moduleStart()
                 throws java.lang.Exception
The module should activate itself if nessesary (depending on the application only few modules have to be started). All Modules are already initialized when calling this method.

Throws:
java.lang.Exception

moduleDestroy

public void moduleDestroy()
Destroys the module. The module should free all resources. The module will not be used after this call.