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
--
Miguel García Longarón
Ingeniero I+D
División de Automóvil Conectado
Telefónica Investigación y Desarrollo
Emilio Vargas, 6
28043 Madrid
España
Tel: (+34) 91 337 99 91
Fax: (+34) 91 337 44 91
Correo-e: [email protected]
Internet: www.tid.es
_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev