You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aries.apache.org by "Tomasz Chodakowski (JIRA)" <ji...@apache.org> on 2010/07/21 13:47:49 UTC

[jira] Updated: (ARIES-366) Provide property injection for properties with overloaded setter method

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

Tomasz Chodakowski updated ARIES-366:
-------------------------------------

    Priority: Minor  (was: Major)

> Provide property injection for properties with overloaded setter method
> -----------------------------------------------------------------------
>
>                 Key: ARIES-366
>                 URL: https://issues.apache.org/jira/browse/ARIES-366
>             Project: Aries
>          Issue Type: Improvement
>          Components: Blueprint
>    Affects Versions: 0.1
>         Environment: Any
>            Reporter: Tomasz Chodakowski
>            Priority: Minor
>
> When injecting bean property with overloaded setter method the framework returns an exception: 
> org.osgi.service.blueprint.container.ComponentDefinitionException: Unable to find property descriptor <bean-property-setter> on class <bean-class>
>  Apparently, behaviour for this case was relaxed in Enterprise OSGI 4.2 spec (see section 121.5.7):
> "There should only be one set method with a single argument for a specific property. If overloaded properties are
> encountered, the chosen set method is unspecified."
>  
>  Taking into account origin of the Blueprint service and possible migration paths for future users I believe the best case would be to follow Spring 3.x behaviour regarding the case above (just to minimize surprises).
> ps:
> For user-forum discussion see:
>  http://mail-archives.apache.org/mod_mbox/incubator-aries-user/201007.mbox/%3C4c446974045723.96045080@wp.pl%3E

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