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

Dominik Przybysz updated ARIES-1677:
------------------------------------
    Description: 
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]



  was:
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:Array", value="val1|val2") - array of 
java.lang.String [val1, val2]
- @Property(name = "test2:Array<Short>", value="1|2|3")  - array of 
java.lang.Short [1, 2, 3]
- @Property(name = "test2:Array<java.lang.Double>", value="1.5|0.8|7.0")  - 
array of java.lang.Double [1.5, 0.8, 7.0]




> 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)

Reply via email to