On 6/2/10 9:55, Norbert Somlai wrote:
I would like to configure a component instance from the _referring_
component, not just provide default properties for a component. Where can I
specify the properties in the referrers component.xml? The DTD does not seem
to allow a<property> element in a<reference> element.
Ah, sorry, I understand now. Yeah, I don't think that is possibly. The
basis is there with component factories, but I think this would require
a spec change or be an impl-specific feature.
-> richard
Norbert
Richard S. Hall wrote:
On 6/2/10 7:58, Norbert Somlai wrote:
Hi,
I know how to use FileInstall or the Web Console to reconfigure a
component.
What I could not find is a way to declaratively configure a component
instance in component.xml, so I could keep the reference and the
configuration at the same place. Something like
<reference interface="com.acme.IInterface" bind="setInterface"
unbind="unsetInterface" policy="dynamic" cardinality="1..1">
<property name="param1" value="value1"/>
...
</reference>
and the ComponentContext on activation would contain this property so the
new instance could initialize itself with it.
Is there a way to achieve something like this with DS or DS+CM?
I thought that _was_ the point of the<property> tag in DS...
-> richard
Thanks, Norbert
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]