@SpringBean should use field name for default bean name
-------------------------------------------------------

                 Key: WICKET-2495
                 URL: https://issues.apache.org/jira/browse/WICKET-2495
             Project: Wicket
          Issue Type: Wish
    Affects Versions: 1.3.4
            Reporter: Ittay Dror


When using @SpringBean, the bean is found either by name if the annotation 
specifies one or by field type. 

I'd like to suggest that if the annotation does not specify a name, then the 
field name is used as the bean name and only if a bean with that name is not 
found, is the type used.

This is because I think most of the time people use a field names the same as 
the bean name (while there can be several beans of the same type)


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