public interface JndiServiceLocator
<T> T lookup(String jndiName)
jndiName - JNDI nameJuRuntimeException - 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 typeJuRuntimeException - if the lookup fails. The exception may contain a NamingException as
its cause.Copyright © 2014. All rights reserved.