|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.dsrg.sofa.bootstrap.MIComponentImpl
public class MIComponentImpl
This microcomponent implements Componet aspect. It is connected to the Component control interface.
Constructor Summary | |
---|---|
MIComponentImpl()
|
Method Summary | |
---|---|
java.lang.Object |
getContent()
Returns reference to the component business code. |
java.lang.Object |
getControlInterface(java.lang.String name)
Returns reference to the control interface implementation. |
java.util.Set<java.lang.String> |
getControlInterfaces()
Returns names of control interfaces on the component. |
java.lang.Object |
getDelegatedProvided()
Takes reference to delegated provided interface implementation. |
DelegationChain |
getDelegationChain(SOFAInterfaceType type,
java.lang.String name)
Returns reference to the interface delegation chain. |
java.util.Set<DelegationChain> |
getDelegationChains()
Returns delegation chains for all business interfaces. |
java.lang.Object |
getFrame()
Returns model object of the frame implemented by component. |
java.lang.Object |
getProvided(java.lang.String name)
Takes reference to implementation of provided interface with given name. |
void |
init(ComponentDescription component,
java.util.Map<java.lang.String,java.lang.String> parameters)
Initialises microcomponent. |
void |
setContent(java.lang.Object o)
Set reference to component content class. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MIComponentImpl()
Method Detail |
---|
public void init(ComponentDescription component, java.util.Map<java.lang.String,java.lang.String> parameters) throws SOFAException
SOFAMicroComponent
init
in interface SOFAMicroComponent
component
- Containing component description.parameters
- Parameters from the model extended by parameters from the Sofa2 runtime.
SOFAException
public java.lang.Object getProvided(java.lang.String name)
SOFAMicroComponent
getProvided
in interface SOFAMicroComponent
name
- Name of the provided interface.
public void setRequired(java.lang.String name, java.lang.Object ref)
SOFAMicroComponent
setRequired
in interface SOFAMicroComponent
name
- Name of the required interface.ref
- Reference to the destination interface implementation.public java.lang.Object getDelegatedProvided() throws SOFAException
SOFAMicroInterceptor
getDelegatedProvided
in interface SOFAMicroInterceptor
SOFAException
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 getControlInterface(java.lang.String name)
MIComponent
getControlInterface
in interface MIComponent
name
- Name of control interface you want to get reference.
public DelegationChain getDelegationChain(SOFAInterfaceType type, java.lang.String name) throws SOFAException
MIComponent
getDelegationChain
in interface MIComponent
type
- Type of the interface. Can be CONTROL, BUSINESS_PROVIDED
or BUSINESS_REQUIRED.name
- Name of interface you want to get delegation chain.
SOFAException
public java.lang.Object getFrame()
MIComponent
getFrame
in interface MIComponent
public java.lang.Object getContent()
MIComponent
getContent
in interface MIComponent
public java.util.Set<java.lang.String> getControlInterfaces()
MIComponent
getControlInterfaces
in interface MIComponent
public java.util.Set<DelegationChain> getDelegationChains()
MIComponent
getDelegationChains
in interface MIComponent
public void setContent(java.lang.Object o)
MIComponent
setContent
in interface MIComponent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |