You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wicket.apache.org by GitBox <gi...@apache.org> on 2021/01/21 12:11:36 UTC

[GitHub] [wicket] martin-g commented on pull request #461: WICKET-6862: Add @Autowired annotation to SpringInjector

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:
users@infra.apache.org