public class JndiIntegration
extends java.lang.Object
Context
.Modifier and Type | Method and Description |
---|---|
static <T> Provider<T> |
fromJndi(java.lang.Class<T> type,
java.lang.String name)
Creates a provider which looks up objects in JNDI using the given name.
|
public static <T> Provider<T> fromJndi(java.lang.Class<T> type, java.lang.String name)
bind(DataSource.class).toProvider(fromJndi(DataSource.class, "java:..."));