/** * Create a new EjbLocalRefMetaData. * * @param delegate the delegate * @return the metadata * @throws IllegalArgumentException for a null delegate or an unknown delegate */ public static EjbLocalRefMetaData create(EJBLocalReferenceMetaData delegate) { if (delegate == null) throw new IllegalArgumentException("Null delegate"); return new EjbLocalRefMetaData(delegate); }
/** * Get the home. * * @return the home. */ public String getLocalHome() { return getDelegate().getLocalHome(); }
String refName = ref.getName(); log.debug("Binding an EJBLocalReference " + ref.getName()); if (ref.getLink() != null) log.debug("Binding " + refName + " to bean source: " + ref.getLink()); String jndiName = ref.getJndiName(); Util.bind(envCtx, ref.getName(), new LinkRef(jndiName)); if (ref.getJndiName() == null) throw new DeploymentException("ejb-local-ref " + ref.getName() + ", expected either ejb-link in ejb-jar.xml " + "or local-jndi-name in jboss.xml"); Util.bind(envCtx, ref.getName(), new LinkRef(ref.getJndiName()));
/** * Get the local. * * @return the local. */ public String getLocal() { return getDelegate().getLocal(); }
/** * Create a new EjbLocalRefMetaData. * * @param delegate the delegate * @return the metadata * @throws IllegalArgumentException for a null delegate or an unknown delegate */ public static EjbLocalRefMetaData create(EJBLocalReferenceMetaData delegate) { if (delegate == null) throw new IllegalArgumentException("Null delegate"); return new EjbLocalRefMetaData(delegate); }
/** * Get the type. * * @return the type. */ public String getType() { return getDelegate().getType(); }
/** * Get an ejb local reference by name * * @param name the name * @return the reference or null if not found * @throws IllegalArgumentException for a null name */ public EjbLocalRefMetaData getEjbLocalRefByName(String name) { EJBLocalReferenceMetaData result = getDelegate().getEjbLocalReferenceByName(name); if (result != null) return new EjbLocalRefMetaData(result); return null; }
/** * Get the name. * * @return the name. */ public String getName() { return getDelegate().getName(); }
/** * Get an ejb local reference by name * * @param name the name * @return the reference or null if not found * @throws IllegalArgumentException for a null name */ public EjbLocalRefMetaData getEjbLocalRefByName(String name) { EJBLocalReferenceMetaData result = getDelegate().getEjbLocalReferenceByName(name); if (result != null) return new EjbLocalRefMetaData(result); return null; }
/** * Get the jndiName. * * @return the jndiName. */ public String getJndiName() { return getDelegate().getMappedName(); }
/** * Get the name. * * @return the name. */ public String getName() { return getDelegate().getName(); }
/** * Get the local. * * @return the local. */ public String getLocal() { return getDelegate().getLocal(); }
/** * Get the link. * * @return the link. */ public String getLink() { return getDelegate().getLink(); }
/** * Get the home. * * @return the home. */ public String getLocalHome() { return getDelegate().getLocalHome(); }
/** * Get the link. * * @return the link. */ public String getLink() { return getDelegate().getLink(); }
/** * Get the type. * * @return the type. */ public String getType() { return getDelegate().getType(); }
/** * Get the jndiName. * * @return the jndiName. */ public String getJndiName() { String jndiName = getDelegate().getResolvedJndiName(); // this fallback to mapped/jndi-name should affect only local tests? // the AS tests pass without it if(jndiName == null) jndiName = getDelegate().getMappedName(); return jndiName; }