wt.services
Class StartupHandler

java.lang.Object
  extended bywt.services.StartupHandler
Direct Known Subclasses:
DefaultStartupHandler, ManagerImplementation

public abstract class StartupHandler
extends Object

A ManagerRepository handles the startup and shutdown of a collection of Managers. It also maintains a mapping of Manager specification classes to Manager instances, which can be queried using the getManager() method.

Supported API: false

Extendable: false


Field Summary
private static String CLASSNAME
           
private static String RESOURCE
           
 
Constructor Summary
StartupHandler()
           
 
Method Summary
protected abstract  boolean isShutDown()
          Returns true if all managers in this repository return (isStartedUp()==false).
protected abstract  boolean isStarted()
          Returns true if all managers in this repository return (isStartedUp()==true).
protected abstract  void prepareForStartup(ManagerService service)
          Create all managers in this repository.
protected abstract  void shutdown()
          Shut down each manager in this repository.
protected abstract  void startup()
          Start up each manager in this repository.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME
Constructor Detail

StartupHandler

public StartupHandler()
Method Detail

isShutDown

protected abstract boolean isShutDown()
Returns true if all managers in this repository return (isStartedUp()==false).

Issue:
This method is not designed for multi-threaded startup. This method assumes that the process is synchronous and that startup has succeeded or failed during the manager startup operation.

Supported API: false

Returns:
boolean

isStarted

protected abstract boolean isStarted()
Returns true if all managers in this repository return (isStartedUp()==true).

Issue:
This method is not designed for multi-threaded startup. This method assumes that the process is synchronous and that startup has succeeded or failed during the manager startup operation.

Supported API: false

Returns:
boolean

prepareForStartup

protected abstract void prepareForStartup(ManagerService service)
                                   throws ManagerException
Create all managers in this repository. Use the service parameter to set the managerService property on each newly instantiated manager.

Supported API: false

Parameters:
service -
Throws:
ManagerException

shutdown

protected abstract void shutdown()
                          throws ManagerException
Shut down each manager in this repository.

Supported API: false

Throws:
ManagerException

startup

protected abstract void startup()
                         throws ManagerException
Start up each manager in this repository.

Supported API: false

Throws:
ManagerException