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

Clement Escoffier resolved FELIX-815.
-------------------------------------

    Resolution: Fixed

Fixed at r713977 
Properties becomes optional by default.
Unvalued properties are not published with the service reference until they 
receive a value. Setter methods are not called until properties receive a value.

Injected values in fields follow standard Java initialization (null for object 
and arrays, 0 for numeric types, false for boolean). 

Mandatory properties can be set with the 'mandatory' attribute (supported in 
XML and in the annotations).
The core.xsd XML Schema is also modified to add the new attribute.

This improvement allows removing default value in properties (such as in the 
architecture handlers).


> Support optional properties
> ---------------------------
>
>                 Key: FELIX-815
>                 URL: https://issues.apache.org/jira/browse/FELIX-815
>             Project: Felix
>          Issue Type: Improvement
>          Components: iPOJO
>    Affects Versions: iPOJO-1.0.0
>            Reporter: Clement Escoffier
>            Assignee: Clement Escoffier
>             Fix For: iPOJO-1.2.0
>
>
> iPOJO properties are mandatory in the sense that properties must be assigned 
> before instance creation. However, sometimes more flexibility is required and 
> property values could be set later (during the execution). 
> This improvement aims to provide optional properties support. In fact, each 
> property should be optional, and only properties described as mandatory 
> should be mandatory. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to