You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Carsten Ziegeler (JIRA)" <ji...@apache.org> on 2011/02/22 17:53:38 UTC

[jira] Resolved: (FELIX-2753) Support array of classes for @Service annotation

     [ https://issues.apache.org/jira/browse/FELIX-2753?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carsten Ziegeler resolved FELIX-2753.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: scr annotations 1.4.2
                   scr generator 1.0.2
                   maven-scr-plugin-1.6.2

Improved in revision 1073402

The Services annotation is now deprecated as it does not provide any real value over using a single Service annotation with several interfaces.

> Support array of classes for @Service annotation
> ------------------------------------------------
>
>                 Key: FELIX-2753
>                 URL: https://issues.apache.org/jira/browse/FELIX-2753
>             Project: Felix
>          Issue Type: Improvement
>          Components: Maven SCR Plugin
>    Affects Versions:  maven-scr-plugin-1.6.0, scr generator 1.0.0, scr annotations 1.4.0
>            Reporter: Carsten Ziegeler
>            Assignee: Carsten Ziegeler
>             Fix For: maven-scr-plugin-1.6.2, scr generator 1.0.2, scr annotations 1.4.2
>
>
> If a component wants to expose more than one service, it currently requires to use the @Services annotation and nest an array of @Service annotations.
> @Services({
> @Service(value= Class1.class),
> @Service(value= Class2.class)
> })
> We could simplify this for the user and allow an array of classes for the @Service annotation, making @Services obsolete:
> @Service(value={Class1.class, Class2.class})

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira