/** * writes the deployment descriptors (standard and runtime) * to a JarFile using the right deployment descriptor path * * @param in the input archive * @param out the abstract archive file to write to */ @Override public void writeDeploymentDescriptors(Archivist main, BundleDescriptor descriptor, ReadableArchive in, WritableArchive out) throws IOException { if (descriptor.hasWebServices()) { super.writeDeploymentDescriptors(main, descriptor, in, out); } } }
/** * writes the descriptor to an output stream * * @param descriptor the descriptor * @param os the output stream */ @Override public void write(Descriptor descriptor, OutputStream os) throws IOException { if (descriptor instanceof BundleDescriptor) { BundleDescriptor bundleDesc = (BundleDescriptor)descriptor; if (bundleDesc.hasWebServices()) { super.write(bundleDesc.getWebServices(), os); } } }
/** * Write web services related descriptors * @param desc the module descriptor * @param out the output archive */ protected void writeWebServicesDescriptors(BundleDescriptor desc, WritableArchive out) throws IOException { if (desc.hasWebServices()) { DeploymentDescriptorFile webServicesDD = getWebServicesDDFile(desc); OutputStream os = out.putNextEntry(webServicesDD.getDeploymentDescriptorPath()); webServicesDD.write(desc, os); out.closeEntry(); } }
public void copyStandardDeploymentDescriptors(ReadableArchive in, WritableArchive out) throws IOException { String entryName = getDeploymentDescriptorPath(); copyAnEntry(in, out, entryName); Descriptor desc = getDescriptor(); // only bundle descriptor can have web services if (desc instanceof BundleDescriptor) { BundleDescriptor desc2 = (BundleDescriptor) desc; if (desc2.hasWebServices()) { DeploymentDescriptorFile webServicesDD = getWebServicesDDFile((BundleDescriptor) desc2); String anEntry = webServicesDD.getDeploymentDescriptorPath(); copyAnEntry(in, out, anEntry); } } }
/** * Write weblogic web services related descriptors * @param desc the module descriptor * @param out the output archive */ private void writeWLWebServicesDescriptors(BundleDescriptor desc, WritableArchive out) throws IOException { if (desc.hasWebServices()) { DeploymentDescriptorFile webServicesDD = new WLWebServicesDeploymentDescriptorFile(desc.getWebServices()); OutputStream os = out.putNextEntry(webServicesDD.getDeploymentDescriptorPath()); webServicesDD.write(desc.getWebServices(), os); out.closeEntry(); } }
if (bundle.hasWebServices()) { WebServicesDescriptor webServices = bundle.getWebServices(); for (WebService webService : webServices.getWebServices()) {