Re: Can @Inject annotation be used instead of @SpringBean to inject Spring beans?

2017-02-04 Thread Pedro Santos
@Inject, it would make it easier to migrate to CDI as well cheers Pedro Santos On Tue, Jan 31, 2017 at 5:26 AM, Martin Grigorov wrote: > Hi, > > I use @SpringBean in my applications. > The only reason one to switch to @Inject is if your application may use > Guice in the

Re: Can @Inject annotation be used instead of @SpringBean to inject Spring beans?

2017-01-30 Thread Martin Grigorov
Hi, I use @SpringBean in my applications. The only reason one to switch to @Inject is if your application may use Guice in the future. Using @Inject will make it easier to migrate. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Jan 31, 2017 at 4:36 AM,

Can @Inject annotation be used instead of @SpringBean to inject Spring beans?

2017-01-30 Thread James Selvakumar
Hi all, I've always used @SpringBean annotation to inject Spring beans in my Wicket components. We found that we could also use the standard @Inject annotation in Wicket components. Is it advisable to use @Inject instead of @SpringBean? Or should we continue to use @SpringBean? -- Thanks &