@ServiceProperty can be applied to multiple fields in a class, but can only be applied once per field.
This differs from the SCR annotations that also allow multiple properties to be set at the type (class, interface) level. On Fri, Feb 18, 2011 at 10:22 AM, Pierre Henry Perret <[email protected]>wrote: > ok, > > So why the @ServiceProperty allows only one annotation, if many properties > cans be defined in a Dictionary , (as usually is the case in a service) > > -- > Pierre > > 2011/2/18 Guillaume Sauthier <[email protected]> > > If using @ServiceProperty, you will add an entry in that Dictionary. > > --G > > > > Le 18/02/2011 15:27, Pierre Henry Perret a écrit : > > > > Hi all, > >> > >> When a service is registered via the registration service , a Dictionary > >> of > >> properties is passed. > >> What is the equivalence of this metadata Dictionary ? > >> Is that @ServiceProperty ? > >> > >> Thanls > >> > >> > >> -- > >> Pierre-Henry Perret > >> > >> > >> > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [email protected] > > For additional commands, e-mail: [email protected] > > >

