• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Bartender
Posts: 1104
10
Netbeans IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).
 
best scout
Posts: 1294
Scala IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 1104
10
Netbeans IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Oh ok. I was thinking Weld is the RI.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic