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/03/08 15:22:59 UTC

[jira] Updated: (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 updated FELIX-2753:
------------------------------------

    Fix Version/s: scr ant task 1.0.2

> 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.7.0, scr ant task 1.0.2, scr generator 1.0.2, scr annotations 1.5.0
>
>
> 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