Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is there a RI available for JSR 330 (Dependency Injection)?

 
Ranganathan Kaliyur Mannar
Bartender
Posts: 1101
10
Java Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a reference implementation available for JSR 330 (Dependency Injection)? When I google for JSR 330 it invariably leads to some links for CDI (JSR 299) and CDI implementations like Weld.
I was wondering if there is a RI available for 330 which I could happily use in my Java standalone applications.
(CDI is targeted at Java EE whereas the JCP page of JSR 330 says it is targeted at Java SE).
 
Marco Ehrentreich
best scout
Bartender
Posts: 1294
IntelliJ IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Google Guice is the RI for JSR 330 starting from version 3.0. But as far as I know the only advantage for a Java SE project at the moment is that you can use the standardized annotation (like @Inject) instead of the Guice-specific ones from earlier versions of Guice.

Unfortunately I don't know what the future plans are for JSR 330 regarding Java standalone applications. Maybe the said annotations or a complete DI framework will be included in the JDK of future Java versions. I don't know...

Marco
 
Ranganathan Kaliyur Mannar
Bartender
Posts: 1101
10
Java Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh ok. I was thinking Weld is the RI.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic