|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.inject.jndi.JndiIntegration
public class JndiIntegration
Integrates Guice with JNDI. Requires a binding to
Context
.
Method Summary | ||
---|---|---|
static
|
fromJndi(java.lang.Class<T> type,
java.lang.String name)
Creates a provider which looks up objects in JNDI using the given name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <T> Provider<T> fromJndi(java.lang.Class<T> type, java.lang.String name)
bind(DataSource.class).toProvider(fromJndi(DataSource.class, "java:..."));
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |