Package org.apache.muse.tools.generator.util

Examples of org.apache.muse.tools.generator.util.DeploymentDescriptorHelper


      servicesHelper.addActionMappings((Capability) i.next(), serviceName);
    }
  }

  protected void createDescriptor(Document descriptorDocument, Document wsdl, File descriptorFile, Map capabilities, String wsdlRelativePath, int resourceIndex) throws Exception {
    DeploymentDescriptorHelper helper = new DeploymentDescriptorHelper(descriptorDocument, wsdl, resourceIndex);
   
    //update the wsdl file location
    helper.setWsdlFile(wsdlRelativePath + WsdlUtils.getServiceName(wsdl.getDocumentElement()) + DEFAULT_WSDL_NAME_SUFFIX);     
   
    //update the service name
    helper.setContextPath(WsdlUtils.getServiceName(wsdl.getDocumentElement()));
         
    //update the name of the class that is the base resource
    helper.setJavaResourceClass(getResourceClass(capabilities).getName());     

    //add the capabilities
    for(Iterator i=capabilities.values().iterator(); i.hasNext();) {
      helper.addCapability((Capability)i.next());
    }
   
    writeToFileCheck(descriptorDocument, descriptorFile);
  }
View Full Code Here


   
    if(descriptorDocument == null) {
      return;
    }
   
    DeploymentDescriptorHelper helper =
      new DeploymentDescriptorHelper(descriptorDocument, _wsdlDocuments[resourceIndex], resourceIndex);
           
    for(Iterator i = _capabilityMaps[resourceIndex].values().iterator(); i.hasNext(); ) {
      Capability capability = (Capability)i.next();
       
      String uri = capability.getURI();
      String implClass = helper.getCapabilityClass(uri);
      if(implClass != null) {
        String existingClass = capability.getImplementingClass();
        if(existingClass == null) {
          capability.setImplementingClass(implClass);
          capability.setBuiltIn(false);
View Full Code Here

        //
        if (capabilities.keySet().contains(WsnConstants.SUBSCRIPTION_MGR_URI) ||
            capabilities.keySet().contains(WssgConstants.ENTRY_URI))
            return;
       
        DeploymentDescriptorHelper helper = new DeploymentDescriptorHelper(descriptorDocument, wsdl, resourceIndex);
   
    //update the wsdl file location
    helper.setWsdlFile(getWsdlFileName(wsdlRelativePath, wsdl));   
   
    //update the service name
    helper.setContextPath(WsdlUtils.getServiceName(wsdl.getDocumentElement()));
         
    //update the name of the class that is the base resource
    helper.setJavaResourceClass(getResourceClass(capabilities).getName());     

    //add the capabilities
    for(Iterator i=capabilities.values().iterator(); i.hasNext();) {
      helper.addCapability((Capability)i.next());
    }
   
    writeToFileCheck(descriptorDocument, descriptorFile);
  }
View Full Code Here

    // a check when servicegroup generation comes in
    //
        if (capabilities.keySet().contains(WsnConstants.SUBSCRIPTION_MGR_URI))
            return;
       
        DeploymentDescriptorHelper helper = new DeploymentDescriptorHelper(descriptorDocument, wsdl, resourceIndex);
   
    //update the wsdl file location
    helper.setWsdlFile(getWsdlFileName(wsdlRelativePath, wsdl));     
   
    //update the service name
    helper.setContextPath(WsdlUtils.getServiceName(wsdl.getDocumentElement()));
         
    //update the name of the class that is the base resource
    helper.setJavaResourceClass(getResourceClass(capabilities).getName());     

    //add the capabilities
    for(Iterator i=capabilities.values().iterator(); i.hasNext();) {
      helper.addCapability((Capability)i.next());
    }
   
    writeToFileCheck(descriptorDocument, descriptorFile);
  }
View Full Code Here

   
    if(descriptorDocument == null) {
      return;
    }
   
    DeploymentDescriptorHelper helper =
      new DeploymentDescriptorHelper(descriptorDocument, _wsdlDocuments[resourceIndex], resourceIndex);
           
    Capability[] capsFromDescriptor = helper.getCapabilities();
    Map currentCapabilityMap = _capabilityMaps[resourceIndex];
   
    for(int i=0; i < capsFromDescriptor.length; i++) {
      Capability capability = capsFromDescriptor[i];
     
View Full Code Here

    // a check when servicegroup generation comes in
    //
        if (capabilities.keySet().contains(WsnConstants.SUBSCRIPTION_MGR_URI))
            return;
       
        DeploymentDescriptorHelper helper = new DeploymentDescriptorHelper(descriptorDocument, wsdl, resourceIndex);
   
    //update the wsdl file location
    helper.setWsdlFile(getWsdlFileName(wsdlRelativePath, wsdl));   
   
    //update the service name
    helper.setContextPath(WsdlUtils.getServiceName(wsdl.getDocumentElement()));
         
    //update the name of the class that is the base resource
    helper.setJavaResourceClass(getResourceClass(capabilities).getName());     

    //add the capabilities
    for(Iterator i=capabilities.values().iterator(); i.hasNext();) {
      helper.addCapability((Capability)i.next());
    }
   
    writeToFileCheck(descriptorDocument, descriptorFile);
  }
View Full Code Here

        //
        if (capabilities.keySet().contains(WsnConstants.SUBSCRIPTION_MGR_URI) ||
            capabilities.keySet().contains(WssgConstants.ENTRY_URI))
            return;
       
        DeploymentDescriptorHelper helper = new DeploymentDescriptorHelper(descriptorDocument, wsdl, resourceIndex);
   
    //update the wsdl file location
    helper.setWsdlFile(wsdlRelativePath + WsdlUtils.getServiceName(wsdl.getDocumentElement()) + DEFAULT_WSDL_NAME_SUFFIX);     
   
    //update the service name
    helper.setContextPath(WsdlUtils.getServiceName(wsdl.getDocumentElement()));
         
    //update the name of the class that is the base resource
    helper.setJavaResourceClass(getResourceClass(capabilities).getName());     

    //add the capabilities
    for(Iterator i=capabilities.values().iterator(); i.hasNext();) {
      helper.addCapability((Capability)i.next());
    }
   
    writeToFileCheck(descriptorDocument, descriptorFile);
  }
View Full Code Here

        //
        if (capabilities.keySet().contains(WsnConstants.SUBSCRIPTION_MGR_URI) ||
            capabilities.keySet().contains(WssgConstants.ENTRY_URI))
            return;
       
        DeploymentDescriptorHelper helper = new DeploymentDescriptorHelper(descriptorDocument, wsdl, resourceIndex);
   
    //update the wsdl file location
    helper.setWsdlFile(wsdlRelativePath + WsdlUtils.getServiceName(wsdl.getDocumentElement()) + DEFAULT_WSDL_NAME_SUFFIX);     
   
    //update the service name
    helper.setContextPath(WsdlUtils.getServiceName(wsdl.getDocumentElement()));
         
    //update the name of the class that is the base resource
    helper.setJavaResourceClass(getResourceClass(capabilities).getName());     

    //add the capabilities
    for(Iterator i=capabilities.values().iterator(); i.hasNext();) {
      helper.addCapability((Capability)i.next());
    }
   
    writeToFileCheck(descriptorDocument, descriptorFile);
  }
View Full Code Here

   
    if(descriptorDocument == null) {
      return;
    }
   
    DeploymentDescriptorHelper helper =
      new DeploymentDescriptorHelper(descriptorDocument, _wsdlDocuments[resourceIndex], resourceIndex);
           
    for(Iterator i = _capabilityMaps[resourceIndex].values().iterator(); i.hasNext(); ) {
      Capability capability = (Capability)i.next();
       
      String uri = capability.getURI();
      String implClass = helper.getCapabilityClass(uri);
      if(implClass != null) {
        String existingClass = capability.getImplementingClass();
        if(existingClass == null) {
          capability.setImplementingClass(implClass);
          capability.setBuiltIn(false);
View Full Code Here

TOP

Related Classes of org.apache.muse.tools.generator.util.DeploymentDescriptorHelper

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.