martin-g commented on pull request #461:
URL: https://github.com/apache/wicket/pull/461#issuecomment-764601347


   I agree with @svenmeier - by using `@SpringBean` one knows who is 
responsible to do the injection - Wicket.
   If we start supporting `Autowired` then soon we will have to take care for 
`@Qualifier` too...
   If Spring's BeanFactory had a method like `getBean(Field)` then maybe this 
would have been cleaner. Just pass the field to Spring and let it deal with all 
possible annotations it supports.
   
   Actually `SpringBean` is an artefact from the past. The idea was everyone 
(Spring included) to move to javax.inject APIs but this never happened.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to