Examples of ConfigurationDocument


Examples of com.sun.java.xml.ns.jaxRpc.ri.config.ConfigurationDocument

  }

  private String buildConfigFile( StringToStringMap values, Interface modelItem ) throws IOException
  {
    File file = File.createTempFile( "wscompile-config", ".xml" );
    ConfigurationDocument configDocument = createConfigFile( values, modelItem );
    configDocument.save( file );
    return file.getAbsolutePath();
  }
View Full Code Here

Examples of com.sun.java.xml.ns.jaxRpc.ri.config.ConfigurationDocument

    return file.getAbsolutePath();
  }

  private ConfigurationDocument createConfigFile( StringToStringMap values, Interface modelItem )
  {
    ConfigurationDocument configDocument = ConfigurationDocument.Factory.newInstance();
    Configuration config = configDocument.addNewConfiguration();

    WsdlType wsdl = config.addNewWsdl();
    wsdl.setLocation( getWsdlUrl( values, modelItem ) );
    wsdl.setPackageName( values.get( PACKAGE ).toString() );
View Full Code Here

Examples of com.sun.java.xml.ns.jaxRpc.ri.config.ConfigurationDocument

      this.modelItem = modelItem;
    }

    protected String getConfigFile()
    {
      ConfigurationDocument configDocument = createConfigFile( getDialog().getValues(), modelItem );
      return configDocument.toString();
    }
View Full Code Here

Examples of com.sun.java.xml.ns.jaxRpc.ri.config.ConfigurationDocument

        return builder;
    }

    private String buildConfigFile(StringToStringMap values, Interface modelItem) throws IOException {
        File file = File.createTempFile("wscompile-config", ".xml");
        ConfigurationDocument configDocument = createConfigFile(values, modelItem);
        configDocument.save(file);
        return file.getAbsolutePath();
    }
View Full Code Here

Examples of com.sun.java.xml.ns.jaxRpc.ri.config.ConfigurationDocument

        configDocument.save(file);
        return file.getAbsolutePath();
    }

    private ConfigurationDocument createConfigFile(StringToStringMap values, Interface modelItem) {
        ConfigurationDocument configDocument = ConfigurationDocument.Factory.newInstance();
        Configuration config = configDocument.addNewConfiguration();

        WsdlType wsdl = config.addNewWsdl();
        wsdl.setLocation(getWsdlUrl(values, modelItem));
        wsdl.setPackageName(values.get(PACKAGE).toString());
View Full Code Here

Examples of com.sun.java.xml.ns.jaxRpc.ri.config.ConfigurationDocument

            super(title, description);
            this.modelItem = modelItem;
        }

        protected String getConfigFile() {
            ConfigurationDocument configDocument = createConfigFile(getDialog().getValues(), modelItem);
            return configDocument.toString();
        }
View Full Code Here

Examples of org.apache.geronimo.deployment.xbeans.ConfigurationDocument

*/
public class ConfigPlanTest extends TestCase {
    private URL plan1;

    public void testParser() throws Exception {
        ConfigurationDocument doc = ConfigurationDocument.Factory.parse(plan1);
        ConfigurationType configuration = doc.getConfiguration();
        assertEquals("test/plan1", configuration.getConfigId());

        DependencyType[] dependencies = configuration.getDependencyArray();
        assertEquals(1, dependencies.length);
        assertEquals("geronimo", dependencies[0].getGroupId());
View Full Code Here

Examples of org.apache.geronimo.deployment.xbeans.ConfigurationDocument

        //this is kind of cheating, we rely on the builder to iterate through existing members of the collection.
        referenceCollection.add(javaBeanXmlAttributeBuilder);
        new ServiceConfigBuilder(parentIdArray, null, referenceCollection, null, null);
        ClassLoader cl = Thread.currentThread().getContextClassLoader();
        URL plan1 = cl.getResource("services/plan1.xml");
        ConfigurationDocument doc = ConfigurationDocument.Factory.parse(plan1);
        ConfigurationType plan = doc.getConfiguration();
        File outFile = File.createTempFile("foo", "bar");
        outFile.delete();
        if (!outFile.mkdirs()) {
            fail("could not create temp dir");
        }
View Full Code Here

Examples of org.apache.geronimo.deployment.xbeans.ConfigurationDocument

                    return null;
                }
            } finally {
                cursor.dispose();
            }
            ConfigurationDocument configurationDoc;
            if (xmlObject instanceof ConfigurationDocument) {
                configurationDoc = (ConfigurationDocument) xmlObject;
            } else {
                configurationDoc = (ConfigurationDocument) xmlObject.changeType(ConfigurationDocument.type);
            }
            Collection errors = new ArrayList();
            if (!configurationDoc.validate(XmlBeansUtil.createXmlOptions(errors))) {
                throw new DeploymentException("Invalid deployment descriptor: " + errors + "\nDescriptor: " + configurationDoc.toString());
            }
            return configurationDoc.getConfiguration();
        } catch (XmlException e) {
            throw new DeploymentException("Could not parse xml in plan", e);
        } catch (IOException e) {
            throw new DeploymentException("no plan at " + planFile, e);
        }
View Full Code Here

Examples of org.apache.geronimo.deployment.xbeans.ConfigurationDocument

*/
public class ConfigPlanTest extends TestCase {
    private URL plan1;

    public void testParser() throws Exception {
        ConfigurationDocument doc = ConfigurationDocument.Factory.parse(plan1);
        ConfigurationType configuration = doc.getConfiguration();
        assertEquals("test/plan1", configuration.getConfigId());

        DependencyType[] dependencies = configuration.getDependencyArray();
        assertEquals(1, dependencies.length);
        assertEquals("geronimo", dependencies[0].getGroupId());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.