I have a problem relating to iPOJO, as example:
I define and deploy a component A which provide a “HelloService” service (interface). And an instance of component A named “instance_A”
I define also a component B requiring “HelloService” service in A. the implementation of B declared a dependency:
HelloService hello;
And in metadata.xml, I declare:
<ipojo>
<component classname="B_class" name="B" immediate="true">
<requires field=" hello" from="instance_A">
</requires>
</component>
<instance component="B" name="call"/>
</ipojo>
- Now, I want implement a component C to dynamically control change (from="instance_A") in metadata to another (ex. from="instance_D")
How I can do it (component C) to change this "from"?
Thanks in advance