|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.dsrg.sofa.bootstrap.FactoryInterceptor
public class FactoryInterceptor
TODO document
Constructor Summary | |
---|---|
FactoryInterceptor()
|
Method Summary | |
---|---|
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. |
void |
init(ComponentInstance component,
java.util.Map<java.lang.String,java.lang.String> parameters)
Initialises microcomponent. |
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
|
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 FactoryInterceptor()
Method Detail |
---|
public void init(ComponentInstance component, java.util.Map<java.lang.String,java.lang.String> parameters) throws SOFAException
SOFAMicroComponent
init
in interface SOFAMicroComponent
parameters
- Parameters from the model extended by parameters from the Sofa2 runtime.
SOFAException
public java.lang.Object getDelegatedProvided() throws SOFAException
SOFAMicroComponent
getDelegatedProvided
in interface SOFAMicroComponent
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 setDelegatedRequired(java.lang.Object ref) throws SOFAException
SOFAMicroComponent
setDelegatedRequired
in interface SOFAMicroComponent
ref
- Interface implementation reference to delegate to.
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
public java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args) throws java.lang.Throwable
invoke
in interface java.lang.reflect.InvocationHandler
java.lang.Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |