Dear Karaf Team,

I would like to build a bean each time a reference is matched.

I tried this:
<bean id="KindOfFactory" class="TestClass" scope="prototype"/>

<reference-list interface="SomeInterface"/>
<reference-listener ref="KindOfFactory" bind-method="bind"/>
</reference-list>

But prototype instantiation seems to be linked to the reference-list itself 
rather than the listener call.

Anyway, is there a way to instantiate a bean each time a kind of service is 
mapped in Karaf using only blueprint?

Kind regards,
Jean-Philippe

[@@ OPEN @@]

Reply via email to