Hi all,
I'm trying to develop a ds component factory that istantiate my
components on demand.
In particular i've another service that use the component factory to
instantiate components.
My components implement the EventHandler interface, and i want to
specify the topic to subscribe
in the properties just before calling the newInstance method on the factory.
The problem is that even if my component implements the EventHandler
interface and has the "EventConstants.TOPIC" valorized
it's not tracked as Event Handler ( i've just put a breakpoint on
org.eclipse.equinox.internal.event.EventHandlerTracker", and the add
service method
is not called when the component factories create the instance of mine
component.. )
Any idea about that???? Could this be a bug????
At the momnent i'm using equinox 3.5 ( M7 ) version.
My ds xml file looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0"
name="org.my.components.factory"
factory="my.componentfactory">
<implementation class="org.my.components.MyComponent"/>
<provide interface="org.my.core.IMyService"/>
<provide interface="org.osgi.service.event.EventHandler"/>
</service>
</scr:component>
Thanks
_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev