aspose file tools*
The moose likes Other JSRs and the fly likes Is there a RI available for JSR 330 (Dependency Injection)? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java JSRs » Other JSRs
Bookmark "Is there a RI available for JSR 330 (Dependency Injection)?" Watch "Is there a RI available for JSR 330 (Dependency Injection)?" New topic
Author

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

Ranganathan Kaliyur Mannar
Bartender

Joined: Oct 16, 2003
Posts: 1085
    
  10

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).


Ranga.
SCJP 1.4, OCMJEA/SCEA 5.0.
Marco Ehrentreich
best scout
Bartender

Joined: Mar 07, 2007
Posts: 1282

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

Joined: Oct 16, 2003
Posts: 1085
    
  10

Oh ok. I was thinking Weld is the RI.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is there a RI available for JSR 330 (Dependency Injection)?