/** * Creates a new SCA node from the XML configuration of the node * @param is The input stream that the XML configuration can be read. The stream will be closed * after this call. * @return a new SCA node */ public Node createNode(InputStream is) { NodeConfiguration configuration = loadConfiguration(is, null); return createNode(configuration); }
/** * Creates a new SCA node from the XML configuration of the node * @param is The input stream that the XML configuration can be read. The stream will be closed * after this call. * @return a new SCA node */ public Node createNode(InputStream is) { NodeConfiguration configuration = loadConfiguration(is, null); return createNode(configuration); }
/** * Creates a new SCA node from the configuration URL * * @param configurationURL the URL of the node configuration which is the XML document * that contains the URI of the composite and a collection of URLs for the contributions * * @return a new SCA node. */ public Node createNode(URL configurationURL) { try { InputStream is = openStream(configurationURL); NodeConfiguration configuration = loadConfiguration(is, configurationURL); return createNode(configuration); } catch (IOException e) { throw new ServiceRuntimeException(e); } }
/** * Creates a new SCA node from the configuration URL * * @param configurationURL the URL of the node configuration which is the XML document * that contains the URI of the composite and a collection of URLs for the contributions * * @return a new SCA node. */ public Node createNode(URL configurationURL) { try { InputStream is = openStream(configurationURL); NodeConfiguration configuration = loadConfiguration(is, configurationURL); return createNode(configuration); } catch (IOException e) { throw new ServiceRuntimeException(e); } }
if (nodeConfigURI != null) { URL url = getResource(servletContext, nodeConfigURI); configuration = factory.loadConfiguration(url.openStream(), url); } else { configuration = factory.createNodeConfiguration();