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


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/%[email protected]%3e

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