[ http://issues.apache.org/jira/browse/FELIX-91?page=all ]

Clement Escoffier updated FELIX-91:
-----------------------------------

    Attachment: diff.txt

iPOJO properties support array and vector, but it is not possible to configure 
these properties from the metadata.
This patch allow this possibility for array. The case of vector is different 
because, iPOJO does not have any infoormtaion on the internal type of the 
vector.
Now, you can configure array property by using the following format : 
<property field="m_myArrayField" name="myProperty.myArray" value="{foo, bar}"/>
The value attribute will be parsed and create the corresponding array by using 
the constructor of the internal type with a String in argument. It works with 
primitive types and objects (with a constructor with a String in argument).

The patch insert the propagation of properties received by the config admin 
handler too. Now when the handler receive a new configuration, the handler 
propagate all received property (non-matching with configurable properties) to 
the service properties. In fact, it removes all already propagated properties 
and then propagate the new properties. 

> iPOJO does not support arrays or vectors in Configuration Properties
> --------------------------------------------------------------------
>
>          Key: FELIX-91
>          URL: http://issues.apache.org/jira/browse/FELIX-91
>      Project: Felix
>         Type: Improvement

>   Components: iPOJO
>     Reporter: John Conlon
>  Attachments: diff.txt
>
> iPOJO does not support arrays or vectors inside Configuration Admin property 
> values per 104.4.2.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to