/** * Adds a new DOL descriptor instance to the descriptor instance associated with * this XMLNode * * @param descriptor the new descriptor */ public void addDescriptor(Object descriptor) { if (getParentNode()==null) { DOLUtils.getDefaultLogger().log(Level.SEVERE, "enterprise.deployment.backend.addDescriptorFailure", new Object[] {descriptor , toString()}); throw new RuntimeException("Cannot add " + descriptor + " to " + toString()); } else { getParentNode().addDescriptor(descriptor); } }
/** * notification of the end of XML parsing for this node */ public void postParsing() { getParentNode().addDescriptor(new MailConfiguration(name, mail_from, mail_host)); } }
/** * Adds a new DOL descriptor instance to the descriptor instance associated with * this XMLNode * * @param descriptor the new descriptor */ public void addDescriptor(Object descriptor) { if (getParentNode()==null) { DOLUtils.getDefaultLogger().log(Level.SEVERE, "enterprise.deployment.backend.addDescriptorFailure", new Object[] {descriptor , toString()}); throw new RuntimeException("Cannot add " + descriptor + " to " + toString()); } else { getParentNode().addDescriptor(descriptor); } }
/** * notification of the end of XML parsing for this node */ public void postParsing() { getParentNode().addDescriptor(new MailConfiguration(name, mail_from, mail_host)); } }
/** * notification of the end of XML parsing for this node */ public void postParsing() { if (getParentNode().getDescriptor() instanceof ResourceReferenceDescriptor) { ((ResourceReferenceDescriptor) getParentNode().getDescriptor()).setResourcePrincipal(new ResourcePrincipal(name, passwd)); } else { getParentNode().addDescriptor(new ResourcePrincipal(name, passwd)); } }
/** * notification of the end of XML parsing for this node */ public void postParsing() { if (getParentNode().getDescriptor() instanceof ResourceReferenceDescriptor) { ((ResourceReferenceDescriptor) getParentNode().getDescriptor()).setResourcePrincipal(new ResourcePrincipal(name, passwd)); } else { getParentNode().addDescriptor(new ResourcePrincipal(name, passwd)); } }