Hi,

About iPOJO, you can specify the service properties that you want to publish
in the <provides> element
(http://felix.apache.org/site/providing-osgi-services.html). 
In addition, iPOJO allows you to update "transparently" property values from
the code itself.

For example, an instance of a component type with the following metadata
will publish a service (published interfaces are computed automatically),
and will publish the "your.props" property. 
<provides>
        <property field="yourfield" name="your.props"/>
</provides>
This property is attached to the "yourfield" member. So, when you assign a
new value to this field, the service registration will be updated
automatically.


Clement

> -----Message d'origine-----
> De : [EMAIL PROTECTED] [mailto:osgi-dev-
> [EMAIL PROTECTED] De la part de Richard S. Hall
> Envoyé : jeudi 12 juin 2008 11:28
> À : OSGi Developer Mail List
> Objet : Re: [osgi-dev] Setting Service Properties in DS and iPOJO
> 
> Ikuo Yamasaki wrote:
> > 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 ?
> >
> 
> I am not sure if I totally understand the question, do you want the
> component to set the properties or for them to be set externally. For
> the external case, as BJ said, the component properties can be used to
> set them externally, which is true for DS or iPOJO. For the internal
> case, you can do this in iPOJO too, with service properties.
> 
> -> richard
> 
> > 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


_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to