FileDocCategorySizeDatePackage
DeclarativeLifecycleEventService.javaAPI DocGlassfish v2 API3400Fri May 04 22:33:44 BST 2007com.sun.enterprise.admin.selfmanagement.event

DeclarativeLifecycleEventService

public class DeclarativeLifecycleEventService extends Object implements com.sun.appserv.server.ServerLifecycle

Fields Summary
private static volatile LifeCycleImpl
lifecycleImpl
private long
sequenceNumber
Notification sequence number within the source object.
Constructors Summary
public DeclarativeLifecycleEventService()

    // singleton to be constructed by LifeCycle Module
      
    
Methods Summary
public voidonInitialization(com.sun.enterprise.server.ServerContext sc)

    
       
      
        // nothing to do
    
public voidonReady(com.sun.enterprise.server.ServerContext sc)

        if (lifecycleImpl != null)
            lifecycleImpl.onReady(sc);
        
    
public voidonShutdown()

        if (lifecycleImpl != null)
            lifecycleImpl.onShutdown();
    
public voidonStartup(com.sun.enterprise.server.ServerContext sc)

    
public voidonTermination()

        if (lifecycleImpl != null)
            lifecycleImpl.onTermination();
        
    
static synchronized voidsetLifeCycleImpl(LifeCycleImpl impl)

        lifecycleImpl = impl;