/** * Generate the name of an environment dependency in the java: * namespace. This is the lookup string used by a component to access * the dependency. */ private String descriptorToLogicalJndiName(Descriptor descriptor) { // If no java: prefix is specified, default to component scope. String rawName = descriptor.getName(); return (rawName.startsWith(JAVA_COLON)) ? rawName : JAVA_COMP_ENV_STRING + rawName; }
/** * Returns a formatted version of me as a String. */ public void print(StringBuffer toStringBuffer) { toStringBuffer.append("Field: ").append(super.getName()).append("@").append(super.getDescription()); }
/** * Formatted string representing my state. */ public void print(StringBuffer toStringBuffer) { toStringBuffer.append("SecurityRole "); super.print(toStringBuffer); }
/** * Get the description * @return description. */ public String getDescription(){ return super.getDescription(); }
Map largeIcons = descriptor.getLocalizedLargeIconUris(); Map smallIcons = descriptor.getLocalizedSmallIconUris(); if (largeIcons==null && smallIcons==null) { return;
/** * write the localized descriptions, display-names and icons info * * @param the node to write the info to * @param the descriptor containing the displayable information */ public void writeDisplayableComponentInfo(Node node, T descriptor) { LocalizedNode localizedNode = new LocalizedNode(); localizedNode.writeLocalizedMap(node, TagNames.DESCRIPTION, descriptor.getLocalizedDescriptions()); localizedNode.writeLocalizedMap(node, TagNames.NAME, descriptor.getLocalizedDisplayNames()); IconNode iconNode = new IconNode(); iconNode.writeLocalizedInfo(node, descriptor); } }
/** * notify of a new prefix mapping used in this document */ public void addPrefixMapping(String prefix, String uri) { Object o = getDescriptor(); if (o instanceof Descriptor) { Descriptor descriptor = (Descriptor) o; descriptor.addPrefixMapping(prefix, uri); } }
/** * @returns an entry name unique amongst names in this archive based on the triel name. */ protected String getUniqueEntryFilenameFor(Archive archive, String trialName) throws IOException { Vector entriesNames = new Vector(); Enumeration e = archive.entries(); while (e != null && e.hasMoreElements()) { entriesNames.add(e.nextElement()); } return Descriptor.createUniqueFilenameAmongst(trialName, entriesNames); }
/** * writes iocalized descriptions (if any) to the DOM node */ protected void writeLocalizedDescriptions(Node node, Descriptor desc) { LocalizedInfoNode localizedNode = new LocalizedInfoNode(); localizedNode.writeLocalizedMap(node, TagNames.DESCRIPTION, desc.getLocalizedDescriptions()); }
/** ** Returns a String representation of this environment property. */ public void print(StringBuffer toStringBuffer) { toStringBuffer.append("Env-Prop: ").append(super.getName()).append("@"); printInjectableResourceInfo(toStringBuffer); toStringBuffer.append("@").append(this.getType()).append("@").append(this.getValue()).append("@").append("@").append(super.getDescription()); }
/** * Return my formatted string representation. */ public void print(StringBuffer toStringBuffer) { super.print(toStringBuffer); toStringBuffer.append("\n Entity descriptor"); toStringBuffer.append("\n cmpFields ").append(cmpFields); } }
private boolean dependencyAppliesToScope(Descriptor descriptor, ScopeType scope) { String name = descriptor.getName(); return dependencyAppliesToScope(name, scope); }
private void printDescriptorSet(Set descSet, StringBuffer sbuf) { for (Iterator itr = descSet.iterator(); itr.hasNext();) { Object obj = itr.next(); if (obj instanceof Descriptor) ((Descriptor) obj).print(sbuf); else sbuf.append(obj); } }
/** * Returns true if I have an ejb descriptor by that name. */ @Override public boolean hasEjbByName(String name) { for (Iterator itr = getEjbs().iterator(); itr.hasNext();) { Descriptor next = (Descriptor) itr.next(); if (next.getName().equals(name)) { return true; } } return false; }
private void printDescriptorSet(Set descSet, StringBuffer sbuf){ for(Iterator itr = descSet.iterator(); itr.hasNext();){ Object obj = itr.next(); if(obj instanceof Descriptor) ((Descriptor)obj).print(sbuf); else sbuf.append(obj); } }
private boolean undepoyResource(Descriptor descriptor) { try{ ResourceDeployer deployer = getResourceDeployer(descriptor); deployer.undeployResource(descriptor); return true; }catch(Exception e){ _logger.log(Level.WARNING, "Unable to undeploy Descriptor [ " + descriptor.getName() + " ] ", e); return false; } }
private void printDescriptorSet(Set descSet, StringBuffer sbuf) { for (Iterator itr = descSet.iterator(); itr.hasNext();) { Object obj = itr.next(); if (obj instanceof Descriptor) ((Descriptor) obj).print(sbuf); else sbuf.append(obj); } }
@Override public void setElementValue(XMLElement element, String value) { if (EjbTagNames.QUERY_RESULT_TYPE_MAPPING.equals(element.getQName())) { if (EjbTagNames.QUERY_REMOTE_TYPE_MAPPING.equals(value)) { descriptor.setHasRemoteReturnTypeMapping(); } else if (EjbTagNames.QUERY_LOCAL_TYPE_MAPPING.equals(value)) { descriptor.setHasLocalReturnTypeMapping(); } else { DOLUtils.getDefaultLogger().log(Level.SEVERE, "enterprise.deployment.backend.addDescriptorFailure", new Object[] {((Descriptor) getParentNode().getDescriptor()).getName() , value}); } } else { super.setElementValue(element, value); } }
/** * Returns a formatted String of the attributes of this object. */ public void print(StringBuffer toStringBuffer) { super.print(toStringBuffer); toStringBuffer.append( "\n wsdl file : ").append( wsdlFileUri); toStringBuffer.append( "\n mapping file ").append(mappingFileUri); toStringBuffer.append( "\n publish url ").append(publishUrl); toStringBuffer.append( "\n final wsdl ").append(wsdlFileUrl); toStringBuffer.append( "\n endpoints ").append(endpoints); }