/** * 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()); }
@Override public void afterPropertiesSet() throws NamingException { super.afterPropertiesSet(); prepare(); }
public class DataSourceLocator { public JndiObjectLocator jndi; public static Object lookup() { return jndi.lookup(); } }
@Override public void afterPropertiesSet() throws IllegalArgumentException, NamingException { if (!StringUtils.hasLength(getJndiName())) { throw new IllegalArgumentException("Property 'jndiName' is required"); } }
@Override public void afterPropertiesSet() throws IllegalArgumentException, NamingException { if (!StringUtils.hasLength(getJndiName())) { throw new IllegalArgumentException("Property 'jndiName' is required"); } }
/** * 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()); }
@Override public void afterPropertiesSet() throws NamingException { super.afterPropertiesSet(); if (this.lookupOnStartup) { Object object = lookup(); if (this.cache) { this.cachedObject = object; } else { this.targetClass = object.getClass(); } } }
@Override public void afterPropertiesSet() throws IllegalArgumentException, NamingException { if (!StringUtils.hasLength(getJndiName())) { throw new IllegalArgumentException("Property 'jndiName' is required"); } }
/** * 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()); }
/** * Fetches EJB home on startup, if necessary. * @see #setLookupHomeOnStartup * @see #refreshHome */ @Override public void afterPropertiesSet() throws NamingException { super.afterPropertiesSet(); if (this.lookupHomeOnStartup) { // look up EJB home and create method refreshHome(); } }
@Override public void afterPropertiesSet() throws NamingException { super.afterPropertiesSet(); prepare(); }
/** * Fetches EJB home on startup, if necessary. * @see #setLookupHomeOnStartup * @see #refreshHome */ @Override public void afterPropertiesSet() throws NamingException { super.afterPropertiesSet(); if (this.lookupHomeOnStartup) { // look up EJB home and create method refreshHome(); } }
@Override public void afterPropertiesSet() throws NamingException { super.afterPropertiesSet(); if (this.lookupOnStartup) { Object object = lookup(); if (this.cache) { this.cachedObject = object; } else { this.targetClass = object.getClass(); } } }
@Override public void afterPropertiesSet() throws NamingException { super.afterPropertiesSet(); prepare(); }
@Override public void afterPropertiesSet() throws NamingException { super.afterPropertiesSet(); if (this.lookupOnStartup) { Object object = lookup(); if (this.cache) { this.cachedObject = object; } else { this.targetClass = object.getClass(); } } }
/** * Fetches EJB home on startup, if necessary. * @see #setLookupHomeOnStartup * @see #refreshHome */ @Override public void afterPropertiesSet() throws NamingException { super.afterPropertiesSet(); if (this.lookupHomeOnStartup) { // look up EJB home and create method refreshHome(); } }