Re: Struts @Inject vs. Spring @Autowire

2011-04-20 Thread Dave Newton
He's saying that he prefers @Inject since it's a standard; there are multiple implementations of the annotation. Dave On Wed, Apr 20, 2011 at 9:49 AM, M. Rakowski wrote: > >> @Inject is the JSR-330 standard, right? > > I meant com.opensymphony.xwork2.inject.Inject. > But you are right, I should

Re: Struts @Inject vs. Spring @Autowire

2011-04-20 Thread M. Rakowski
@Inject is the JSR-330 standard, right? I meant com.opensymphony.xwork2.inject.Inject. But you are right, I should try EE6 with Java DI. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands,

Re: Struts @Inject vs. Spring @Autowire

2011-04-20 Thread Paul Benedict
@Inject is the JSR-330 standard, right? I prefer that over @Autowired to remove spring dependency in code; @Autowired was created by Spring and influenced the JSR, and they did a pretty good at getting DI right for the rest of us. On Wed, Apr 20, 2011 at 8:01 AM, Dave Newton wrote: > If you're u

Re: Struts @Inject vs. Spring @Autowire

2011-04-20 Thread Dave Newton
If you're using Spring as anything other than a DI framework, yes. If not, depends. Dave On Apr 20, 2011 8:55 AM, "M. Rakowski" wrote: