The following is about DS since I am no expert in iPOJO. If a component is to be a service (has service element) then the component properties will be used as the service properties. So this is how you set the service properties in DS.
You can filter referenced services (the reference element) by setting the target attribute to a filter string. (Section 112.3.4) -- BJ Hargrave Senior Technical Staff Member, IBM OSGi Fellow and CTO of the OSGi Alliance [EMAIL PROTECTED] office: +1 386 848 1781 mobile: +1 386 848 3788 From: Ikuo Yamasaki <[EMAIL PROTECTED]> To: OSGi Developer Mail List <[email protected]> Date: 2008/06/11 04:07 PM Subject: [osgi-dev] Setting Service Properties in DS and iPOJO Hi, OSGi Experts It seems to me that, in OSGi, it would be important to decouple a service object and the service properties when registering a service in order to increasie re-usability of components by adopting some declarative ways. I wonder if it is possible to set service properties when registering a service using Declarative Service (and to filter a service using service properties LDAP fiter when getting a service). As far as I read the spec, it is not possible. How about in the case using iPOJO ? Best regards, --------------------- NTT Cyber Solutions Laboratories Ikuo YAMASAKI E-mail: [EMAIL PROTECTED] TEL +81-46-859-8537 FAX +81-46-855-1282 _______________________________________________ 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
