Thanks Caspar and Carsten for the information Regards Hasan
On Fri, May 27, 2011 at 8:08 AM, Carsten Ziegeler <[email protected]>wrote: > Hasan Hasan wrote > > Dear all > > > > According to http://felix.apache.org/site/scr-annotations.html > > > > "Omitting the Service annotation will just define (and activate if > required) > > the component but not register it as a service. Multiple Service > annotations > > may be declared each with its own value. These annotations need to be > > wrapped into a Services anotation. The component is registered as a > > ServiceFactory if at least on Service annotations declares the > > serviceFactory attribute as true." > > > > The use of @Services is however deprecated. > > > > I have browsed the mailing list, but can't figure out how to specify the > > @Service annotation for multiple services > > > Yes, since version 1.5, Services is deprecated - unfortunately I haven't > updated the docs yet...but you can simply use: > > @Service(value={InterfaceA.class, InterfaceB.class}) > > or just > > @Service({InterfaceA.class, InterfaceB.class}) > > Regards > Carsten > -- > Carsten Ziegeler > [email protected] > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >

