public String getType() { return decoree.getType(); }
public String getType() { return decoree.getType(); }
/** returns a formatted string representing me. */ public void print(StringBuffer toStringBuffer) { String localVsRemote = isLocal() ? "Local" : "Remote"; toStringBuffer.append(localVsRemote + " ejb-ref "); toStringBuffer.append("name="+getName()); if( isEJB30ClientView() ) { toStringBuffer.append("," + localVsRemote + " 3.x interface ="+getEjbInterface()); } else { toStringBuffer.append("," + localVsRemote + " 2.x home ="+getEjbHomeInterface()); toStringBuffer.append("," + localVsRemote + " 2.x component interface="+getEjbInterface()); } if( ejbDescriptor != null ) { toStringBuffer.append(" resolved to intra-app EJB "+ejbDescriptor.getName() + " in module " + ejbDescriptor.getEjbBundleDescriptor().getModuleName()); } toStringBuffer.append(",ejb-link="+getLinkName()); toStringBuffer.append(",lookup="+getLookupName()); toStringBuffer.append(",mappedName="+getMappedName()); toStringBuffer.append(",jndi-name=" + getValue()); toStringBuffer.append(",refType="+getType()); }
/** returns a formatted string representing me. */ @Override public void print(StringBuffer toStringBuffer) { String localVsRemote = isLocal() ? "Local" : "Remote"; toStringBuffer.append(localVsRemote + " ejb-ref "); toStringBuffer.append("name="+getName()); if( isEJB30ClientView() ) { toStringBuffer.append("," + localVsRemote + " 3.x interface ="+getEjbInterface()); } else { toStringBuffer.append("," + localVsRemote + " 2.x home ="+getEjbHomeInterface()); toStringBuffer.append("," + localVsRemote + " 2.x component interface="+getEjbInterface()); } if( ejbDescriptor != null ) { toStringBuffer.append(" resolved to intra-app EJB "+ejbDescriptor.getName() + " in module " + ejbDescriptor.getEjbBundleDescriptor().getModuleName()); } toStringBuffer.append(",ejb-link="+getLinkName()); toStringBuffer.append(",lookup="+getLookupName()); toStringBuffer.append(",mappedName="+getMappedName()); toStringBuffer.append(",jndi-name=" + getValue()); toStringBuffer.append(",refType="+getType()); }
public boolean isConflict(EjbReferenceDescriptor other) { return (getName().equals(other.getName())) && (!( DOLUtils.equals(getType(), other.getType()) && DOLUtils.equals(getEjbHomeInterface(), other.getEjbHomeInterface()) && DOLUtils.equals(getEjbInterface(), other.getEjbInterface()) && DOLUtils.equals(getLinkName(), other.getLinkName()) ) || isConflictResourceGroup(other)); } }
boolean isConflict(EjbReferenceDescriptor other) { return (getName().equals(other.getName())) && (!( DOLUtils.equals(getType(), other.getType()) && DOLUtils.equals(getEjbHomeInterface(), other.getEjbHomeInterface()) && DOLUtils.equals(getEjbInterface(), other.getEjbInterface()) && DOLUtils.equals(getLinkName(), other.getLinkName()) ) || isConflictResourceGroup(other)); } }
appResources.store(new AppResource(name, jndiName, ejbRef.getType(), env, validationRequired));