/** * Perform the actual JNDI lookup for this locator's target resource. * @return the located target object * @throws NamingException if the JNDI lookup failed or if the * located JNDI object is not assignable to the expected type * @see #setJndiName * @see #setExpectedType * @see #lookup(String, Class) */ protected Object lookup() throws NamingException { String jndiName = getJndiName(); Assert.state(jndiName != null, "No JNDI name specified"); return lookup(jndiName, getExpectedType()); }
/** * Perform the actual JNDI lookup for this locator's target resource. * @return the located target object * @throws NamingException if the JNDI lookup failed or if the * located JNDI object is not assignable to the expected type * @see #setJndiName * @see #setExpectedType * @see #lookup(String, Class) */ protected Object lookup() throws NamingException { String jndiName = getJndiName(); Assert.state(jndiName != null, "No JNDI name specified"); return lookup(jndiName, getExpectedType()); }
/** * Perform the actual JNDI lookup for this locator's target resource. * @return the located target object * @throws NamingException if the JNDI lookup failed or if the * located JNDI object is not assignable to the expected type * @see #setJndiName * @see #setExpectedType * @see #lookup(String, Class) */ protected Object lookup() throws NamingException { String jndiName = getJndiName(); Assert.state(jndiName != null, "No JNDI name specified"); return lookup(jndiName, getExpectedType()); }