Hi Miguel,
Sorry, i've made a typo error when copyng the xml file on this message.
The file is ok, and i just debug the code that DS code ( equinox ) that
create the component and register the services, and
it seems there's no error in ds implmentation.
By the way the EventHandlerTracker is not tracking the services just
registered in
the registry by ds.
I think i'll go in detailed debug of the EventHandlerTracker looking why
it's not working.
Andrea
Miguel García Longarón ha scritto:
Hi Andrea,
your ds xml file isn't correct, it doesn't contains the <service> tag.
Regards,
Miguel
Andrea Zoppello wrote:
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
_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev