org.apache.geronimo.gbean
Interface GBeanLifecycle

All Known Implementing Classes:
Configuration, EditableKernelConfigurationManager, KernelConfigurationManager

public interface GBeanLifecycle

An optional interface for a GBean. When a GBean implements this interface, the implementation will get life-cycle callbacks.


Method Summary
 void doFail()
          Fails the GBean.
 void doStart()
          Starts the GBean.
 void doStop()
          Stops the target.
 

Method Detail

doStart

void doStart()
             throws Exception
Starts the GBean. This informs the GBean that it is about to transition to the running state.

Throws:
Exception - if the target failed to start; this will cause a transition to the failed state

doStop

void doStop()
            throws Exception
Stops the target. This informs the GBean that it is about to transition to the stopped state.

Throws:
Exception - if the target failed to stop; this will cause a transition to the failed state

doFail

void doFail()
Fails the GBean. This informs the GBean that it is about to transition to the failed state.



Copyright © 2006 Apache Software Foundation. All Rights Reserved.