biz.junginger.modules
Class AbstractThreadModule

java.lang.Object
  extended byjava.lang.Thread
      extended bybiz.junginger.modules.AbstractThreadModule
All Implemented Interfaces:
Module, java.lang.Runnable

public class AbstractThreadModule
extends java.lang.Thread
implements Module

Author:
Markus Oliver Junginger (c) 2003 by Markus Oliver Junginger. All rights reserved. http://www.junginger.biz

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
AbstractThreadModule()
           
 
Method Summary
 void moduleInit(java.util.Map modules)
          Initialization phase TWO the module.
 void modulePrepare(java.util.Properties properties)
          Initialization phase ONE of the module.
 void moduleShutdown()
           
 void moduleStart()
          Starts the thread.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractThreadModule

public AbstractThreadModule()
Method Detail

modulePrepare

public void modulePrepare(java.util.Properties properties)
                   throws java.lang.Exception
Description copied from interface: Module
Initialization phase ONE of the module. Dependencies ARE NOT met yet.

Specified by:
modulePrepare in interface Module
Throws:
java.lang.Exception
See Also:
Module.modulePrepare(java.util.Properties)

moduleInit

public void moduleInit(java.util.Map modules)
                throws java.lang.Exception
Description copied from interface: Module
Initialization phase TWO the module. Dependencies ARE met.

Specified by:
moduleInit in interface Module
Throws:
java.lang.Exception
See Also:
Module.moduleInit(java.util.Map)

moduleStart

public void moduleStart()
                 throws java.lang.Exception
Starts the thread.

Specified by:
moduleStart in interface Module
Throws:
java.lang.Exception
See Also:
Module.moduleStart()

moduleShutdown

public void moduleShutdown()
Specified by:
moduleShutdown in interface Module
See Also:
Module.moduleShutdown()