[
https://issues.apache.org/jira/browse/ARIES-1677?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15852743#comment-15852743
]
ASF subversion and git services commented on ARIES-1677:
--------------------------------------------------------
Commit 1781654 from [~alien11689] in branch 'aries/trunk'
[ https://svn.apache.org/r1781654 ]
[ARIES-1677] Create typed service properties via annotations
> 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)