frjaeger220 / google-guice

Automatically exported from code.google.com/p/google-guice
Apache License 2.0
0 stars 0 forks source link

[patch] a guice based JNDI provider #259

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
This patch provides a Guice based JNDI provider. While Guice Ioc is a general 
replacement for 
JNDI - there are times when developers need to work with JNDI (e.g. for 
JSR250/EJB3 or legacy 
reasons) and sometimes there is value in some kind of Registry or Service 
Locator pattern.

So this patch provides a JNDI provider which uses Guice to create an Injector 
from one or more 
modules and then exposes the bindings from the injector into JNDI. This lets 
you use Guice to 
fully create the entire JNDI context in a simple easy way letting folks use 
Guice for all their IoC 
needs while using JNDI if it is required.

I can't create wiki documents in guice so for now I've created a wiki document 
in another project 
to describe how to use this JNDI provider and how to bind Guice bindings to JNDI

http://code.google.com/p/camel-extra/wiki/GuiceJndi

Original issue reported on code.google.com by james.st...@gmail.com on 9 Oct 2008 at 11:26

Attachments:

GoogleCodeExporter commented 9 years ago
I'm not sure if this patch really needs to be in the Guice project or not. In 
the meantime I've committed it to this 
guice-utilities project...

http://code.google.com/p/guiceyfruit/

See: http://code.google.com/p/guiceyfruit/wiki/GuiceyJndi

Original comment by james.st...@gmail.com on 13 Oct 2008 at 2:32

GoogleCodeExporter commented 9 years ago

Original comment by limpbizkit on 15 Oct 2008 at 3:11