biz.junginger.modules.util
Class AbstractRMIModule

java.lang.Object
  extended byjava.rmi.server.RemoteObject
      extended byjava.rmi.server.RemoteServer
          extended byjava.rmi.server.UnicastRemoteObject
              extended bybiz.junginger.modules.util.AbstractRMIModule
All Implemented Interfaces:
Module, java.rmi.Remote, java.io.Serializable

public abstract class AbstractRMIModule
extends java.rmi.server.UnicastRemoteObject
implements Module

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
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
AbstractRMIModule()
           
 
Method Summary
 void moduleDestroy()
          Destroys the module. The module should free all resources. The module will not be used after this call.
 void moduleInit(java.util.Map modules)
          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.
 void modulePrepare(java.util.Properties properties)
          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.
 void moduleStart()
          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.
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractRMIModule

public AbstractRMIModule()
                  throws java.rmi.RemoteException
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.

Specified by:
modulePrepare in interface Module
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.

Specified by:
moduleInit in interface Module
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.

Specified by:
moduleStart in interface Module
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.

Specified by:
moduleDestroy in interface Module