org.objectweb.dsrg.sofa.microarchitecture
Interface MILifecycle

All Known Implementing Classes:
MILifecycleBase, MILifecycleImpl

public interface MILifecycle

Interface for control interface of lifecycle aspect. Bootstrap aspects provide this control interface on every component.


Method Summary
 void exit()
          Call to this method will start the stopping process.
 LifecycleState getState()
          Gets the lifecycle state of the component.
 void start()
          Call to this method starts the component.
 void stop()
          Call to this method will start the stopping process.
 void waitStopped()
          Wait until the component is stopped.
 

Method Detail

start

void start()
Call to this method starts the component. When this method returns the component is started.


stop

void stop()
Call to this method will start the stopping process. Component will block incoming calls on business interfaces. This method should not block.

Call to waitStopped is needed to complete component stopping process.


exit

void exit()
Call to this method will start the stopping process. Component will interrupt incoming calls to business interfaces. This method shouldd not block.

Call to waitStopped is needed to complete component stopping process.


waitStopped

void waitStopped()
Wait until the component is stopped. The stopping process have to be started by stop() or exit() methods before calling this method. The component will not be stopped until this method is called.


getState

LifecycleState getState()
Gets the lifecycle state of the component.