public Shell(String domainURI, boolean useJLine) { this.runtime = TuscanyRuntime.newInstance(); this.useJline = useJLine; try { initCommands(); } catch (IOException e) { throw new RuntimeException(e); } if (domainURI != null) { domain(domainURI); } }
public Shell(File nodeXML, boolean useJLine) throws ContributionReadException, MalformedURLException, ActivationException, ValidationException { this.runtime = TuscanyRuntime.newInstance(); this.useJline = useJLine; try { initCommands(); } catch (IOException e) { throw new RuntimeException(e); } Node node = runtime.createNodeFromXML(nodeXML.toURI().toURL().toString()); currentDomain = node.getDomainName(); nodes.put(currentDomain, node); }
public Shell(File nodeXML, boolean useJLine) throws ContributionReadException, MalformedURLException, ActivationException, ValidationException { this.runtime = TuscanyRuntime.newInstance(); this.useJline = useJLine; try { initCommands(); } catch (IOException e) { throw new RuntimeException(e); } Node node = runtime.createNodeFromXML(nodeXML.toURI().toURL().toString()); currentDomain = node.getDomainName(); nodes.put(currentDomain, node); }
public Shell(String domainURI, boolean useJLine) { this.runtime = TuscanyRuntime.newInstance(); this.useJline = useJLine; try { initCommands(); } catch (IOException e) { throw new RuntimeException(e); } if (domainURI != null) { domain(domainURI); } }
public static List<String> getDependencies(String contributionURI, Map<String, ZipInputStream> possibles) throws ValidationException, IOException, ContributionReadException, XMLStreamException { Deployer deployer = TuscanyRuntime.newInstance().getDeployer();
public static List<String> getDependencies(String contributionURI, Map<String, ZipInputStream> possibles) throws ValidationException, IOException, ContributionReadException, XMLStreamException { Deployer deployer = TuscanyRuntime.newInstance().getDeployer();
TuscanyRuntime runtime = newInstance(); String domain = domainURI == null ? DEFAUL_DOMAIN_NAME : domainURI.toString(); DomainRegistry domainRegistry = runtime.domainRegistryFactory.getEndpointRegistry(domain, null);
TuscanyRuntime runtime = newInstance(); String domain = domainURI == null ? DEFAUL_DOMAIN_NAME : domainURI.toString(); DomainRegistry domainRegistry = runtime.domainRegistryFactory.getEndpointRegistry(domain, null);