You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aries.apache.org by "Dominik Przybysz (JIRA)" <ji...@apache.org> on 2017/02/04 12:18:52 UTC

[jira] [Resolved] (ARIES-1677) Create typed service properties via annotations

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

Dominik Przybysz resolved ARIES-1677.
-------------------------------------
    Resolution: Fixed

> Create typed service properties via annotations
> -----------------------------------------------
>
>                 Key: ARIES-1677
>                 URL: https://issues.apache.org/jira/browse/ARIES-1677
>             Project: Aries
>          Issue Type: New Feature
>          Components: Blueprint
>            Reporter: Dominik Przybysz
>            Assignee: Dominik Przybysz
>             Fix For: blueprint-maven-plugin-1.6.0
>
>
> We could currently create service properties only as String.
> The idea is to create typed properties using name property of org.ops4j.pax.cdi.api.Property annotation, e.g.:
> - @Property(name = "test1", value="test") - as it is currently
> - @Property(name = "test1:Integer", value="15") - 15 as java.lang.Integer created with method valueOf
> - @Property(name = "test2:java.lang.Boolean", value="true") - true as java.lang.Boolean created with method valueOf
> - @Property(name = "test2:[]", value="val1|val2") - array of java.lang.String [val1, val2]
> - @Property(name = "test2:Short[]", value="1|2|3")  - array of java.lang.Short [1, 2, 3]
> - @Property(name = "test2:java.lang.Double[]", value="1.5|0.8|7.0")  - array of java.lang.Double [1.5, 0.8, 7.0]



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)