I can't see any reference (felix site or javadoc) to it being deprecated (at
least in 1.4.0), just use:

@Services({ @Service(InterfaceOne.class), @Service(InterfaceTwo.class),
@Service(InterfaceThree.class) })

Note if you just specify @Service without any value it will register all
interfaces.




On 26 May 2011 13:20, Hasan Hasan <[email protected]> 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
>
> Thanks for any hints
> Hasan
>

Reply via email to