|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.dsrg.sofa.bootstrap.MILifecycleImpl
public class MILifecycleImpl
This microcomponent connects to Lifecycle control interface and delegates calls to the base microcomponent of the Lifecycle aspect.
Constructor Summary | |
---|---|
MILifecycleImpl()
|
Method Summary | |
---|---|
void |
exit()
Call to this method will start the stopping process. |
java.lang.Object |
getDelegatedProvided()
Takes reference to delegated provided interface implementation. |
java.lang.Object |
getProvided(java.lang.String name)
Takes reference to implementation of provided interface with given name. |
LifecycleState |
getState()
Gets the lifecycle state of the component. |
void |
init(ComponentDescription component,
java.util.Map<java.lang.String,java.lang.String> parameters)
Initialises microcomponent. |
void |
setDelegatedRequired(java.lang.Object ref)
Gives the microcomponent reference to interface where to delegate calls. |
void |
setRequired(java.lang.String name,
java.lang.Object ref)
Gives the microcomponent reference to destination of its required interface. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MILifecycleImpl()
Method Detail |
---|
public void start()
MILifecycle
start
in interface MILifecycle
public void stop()
MILifecycle
Call to waitStopped is needed to complete component stopping process.
stop
in interface MILifecycle
public void exit()
MILifecycle
Call to waitStopped is needed to complete component stopping process.
exit
in interface MILifecycle
public void waitStopped()
MILifecycle
waitStopped
in interface MILifecycle
public LifecycleState getState()
MILifecycle
getState
in interface MILifecycle
public void init(ComponentDescription component, java.util.Map<java.lang.String,java.lang.String> parameters)
SOFAMicroComponent
init
in interface SOFAMicroComponent
component
- Containing component description.parameters
- Parameters from the model extended by parameters from the Sofa2 runtime.public java.lang.Object getDelegatedProvided()
SOFAMicroInterceptor
getDelegatedProvided
in interface SOFAMicroInterceptor
public void setDelegatedRequired(java.lang.Object ref) throws SOFAException
SOFAMicroInterceptor
setDelegatedRequired
in interface SOFAMicroInterceptor
ref
- Interface implementation reference to delegate to.
SOFAException
public java.lang.Object getProvided(java.lang.String name) throws SOFAException
SOFAMicroComponent
getProvided
in interface SOFAMicroComponent
name
- Name of the provided interface.
SOFAException
public void setRequired(java.lang.String name, java.lang.Object ref) throws SOFAException
SOFAMicroComponent
setRequired
in interface SOFAMicroComponent
name
- Name of the required interface.ref
- Reference to the destination interface implementation.
SOFAException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |