You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Pierre De Rop (JIRA)" <ji...@apache.org> on 2016/03/02 00:57:18 UTC

[jira] [Updated] (FELIX-5180) Support for Java8 Repeatable Properties in DM annotations.

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

Pierre De Rop updated FELIX-5180:
---------------------------------
    Fix Version/s:     (was: 	org.apache.felix.dependencymanager-r7)
                   org.apache.felix.dependencymanager-r8

> Support for Java8 Repeatable Properties in DM annotations.
> ----------------------------------------------------------
>
>                 Key: FELIX-5180
>                 URL: https://issues.apache.org/jira/browse/FELIX-5180
>             Project: Felix
>          Issue Type: Improvement
>          Components: Dependency Manager Annotations
>            Reporter: Pierre De Rop
>            Assignee: Pierre De Rop
>            Priority: Minor
>             Fix For: org.apache.felix.dependencymanager-r8
>
>
> Currently, component properties can be declared in DM annotations using a "properties" attribute which accepts an array of @Property annotations.
> But since we are now using java8 for the R7 version, if would be nicer to support repeatable @Property annotations.
> For example:
> {code}
> @Component(provides=MyService.class)
> @Property(name="v1", value="s")
> @Property(name="v2", value={"s1", "s2"})
> @Property(name="v3", values={"s1", "s2"})
> public class MyServiceImpl implements MyService, Runnable {
> ...
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)