public interface JndiServiceLocator
| Modifier and Type | Method and Description |
|---|---|
<T> T |
lookup(Class<T> clazz)
Looks up the specified JNDI resource by its type.
|
<T> T |
lookup(String jndiName)
Looks up the specified JNDI resource by its name
|
<T> T lookup(String jndiName)
jndiName - JNDI namech.inftec.ju.util.JuRuntimeException - if the lookup fails. The exception may contain a NamingException as
its cause.<T> T lookup(Class<T> clazz)
Different implementations of JndiServiceLocator may use different ways to evaluate a JNDI name from the type if necessary.
clazz - Desired typech.inftec.ju.util.JuRuntimeException - if the lookup fails. The exception may contain a NamingException as
its cause.Copyright © 2016. All rights reserved.