Java EE 5 SDK

com.sun.appserv.server
Class LifecycleModuleService

java.lang.Object
  extended by com.sun.appserv.server.LifecycleModuleService
All Implemented Interfaces:
ServerLifecycle
Direct Known Subclasses:
Pre90LifecycleModuleService

public class LifecycleModuleService
extends Object
implements ServerLifecycle

Support class to assist in firing LifecycleEvent notifications to registered LifecycleListeners.

Version:
$Id: LifecycleModuleService.java,v 1.6 2006/03/18 14:30:34 hzhang_jn Exp $
Author:
Sridatta Viswanath

Field Summary
protected static boolean delayLifeCycleInit
           
 
Constructor Summary
LifecycleModuleService()
           
 
Method Summary
protected  boolean lifeCycleVersionMatches()
           
 void onInitialization(com.sun.enterprise.server.ServerContext context)
          Server is initializing subsystems and setting up the runtime environment.
 void onReady(com.sun.enterprise.server.ServerContext context)
          Server has complted loading the applications and is ready to serve requests.
 void onShutdown()
          Server is shutting down applications
 void onStartup(com.sun.enterprise.server.ServerContext context)
          Server is starting up applications
 void onTermination()
          Server is terminating the subsystems and the runtime environment.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

delayLifeCycleInit

protected static boolean delayLifeCycleInit
Constructor Detail

LifecycleModuleService

public LifecycleModuleService()
Method Detail

lifeCycleVersionMatches

protected boolean lifeCycleVersionMatches()

onInitialization

public void onInitialization(com.sun.enterprise.server.ServerContext context)
                      throws ServerLifecycleException
Description copied from interface: ServerLifecycle
Server is initializing subsystems and setting up the runtime environment. Prepare for the beginning of active use of the public methods of this subsystem. This method is called before any of the public methods of this subsystem are utilized.

Specified by:
onInitialization in interface ServerLifecycle
Parameters:
context - ServerContext the server runtime context.
Throws:
ServerLifecycleException - if this subsystem detects a fatal error that prevents this subsystem from being used

onStartup

public void onStartup(com.sun.enterprise.server.ServerContext context)
               throws ServerLifecycleException
Description copied from interface: ServerLifecycle
Server is starting up applications

Specified by:
onStartup in interface ServerLifecycle
Parameters:
context - ServerContext the server runtime context.
Throws:
ServerLifecycleException - if this subsystem detects a fatal error that prevents this subsystem from being used

onReady

public void onReady(com.sun.enterprise.server.ServerContext context)
             throws ServerLifecycleException
Description copied from interface: ServerLifecycle
Server has complted loading the applications and is ready to serve requests.

Specified by:
onReady in interface ServerLifecycle
Parameters:
context - ServerContext the server runtime context.
Throws:
ServerLifecycleException - if this subsystem detects a fatal error that prevents this subsystem from being used

onShutdown

public void onShutdown()
                throws ServerLifecycleException
Description copied from interface: ServerLifecycle
Server is shutting down applications

Specified by:
onShutdown in interface ServerLifecycle
Throws:
ServerLifecycleException - if this subsystem detects a fatal error that prevents this subsystem from being used

onTermination

public void onTermination()
                   throws ServerLifecycleException
Description copied from interface: ServerLifecycle
Server is terminating the subsystems and the runtime environment. Gracefully terminate the active use of the public methods of this subsystem. This method should be the last one called on a given instance of this subsystem.

Specified by:
onTermination in interface ServerLifecycle
Throws:
ServerLifecycleException - if this subsystem detects a fatal error that prevents this subsystem from being used

Java EE 5 SDK

Submit a bug or feature

Copyright 2006 Sun Microsystems, Inc. All rights reserved.