boolean domains() { for (Node node : nodes.values()) { System.out.println(node.getDomainName()); } return true; }
boolean domains() { for (Node node : nodes.values()) { System.out.println(node.getDomainName()); } return true; }
boolean domain(final String domainURI) { if (domainURI.length() < 1) { currentDomain = ""; } else { for (Node node : nodes.values()) { if (domainURI.equals(node.getDomainName())) { currentDomain = node.getDomainName(); return true; } } Node node = runtime.createNode(domainURI); currentDomain = node.getDomainName(); nodes.put(currentDomain, node); } return true; }
boolean domain(final String domainURI) { if (domainURI.length() < 1) { currentDomain = ""; } else { for (Node node : nodes.values()) { if (domainURI.equals(node.getDomainName())) { currentDomain = node.getDomainName(); return true; } } Node node = runtime.createNode(domainURI); currentDomain = node.getDomainName(); nodes.put(currentDomain, node); } return true; }
boolean load(final String configXmlUrl) throws ContributionReadException, ActivationException, ValidationException { Node node = runtime.createNodeFromXML(configXmlUrl); currentDomain = node.getDomainName(); nodes.put(currentDomain, node); return true; }
boolean load(final String configXmlUrl) throws ContributionReadException, ActivationException, ValidationException { Node node = runtime.createNodeFromXML(configXmlUrl); currentDomain = node.getDomainName(); nodes.put(currentDomain, node); return true; }
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); }
private Node getNode() { // TODO Several places in Tuscany need to do this type of thing, for example, processing // async responses, so we need to design a "proper" way to do it for (ExtensionPointRegistry xpr : ExtensionPointRegistryLocator.getExtensionPointRegistries()) { ActiveNodes activeNodes = xpr.getExtensionPoint(UtilityExtensionPoint.class).getUtility(ActiveNodes.class); for (Object o : activeNodes.getActiveNodes()) { Node node = (Node)o; if (node.getDomainName().equals(domainName)) { return node; } } } throw new IllegalStateException("No remote Node found for domain: " + domainName); }
private Node getNode() { // TODO Several places in Tuscany need to do this type of thing, for example, processing // async responses, so we need to design a "proper" way to do it for (ExtensionPointRegistry xpr : ExtensionPointRegistryLocator.getExtensionPointRegistries()) { ActiveNodes activeNodes = xpr.getExtensionPoint(UtilityExtensionPoint.class).getUtility(ActiveNodes.class); for (Object o : activeNodes.getActiveNodes()) { Node node = (Node)o; if (node.getDomainName().equals(domainName)) { return node; } } } throw new IllegalStateException("No remote Node found for domain: " + domainName); }
out.println("Domain: " + node.getDomainName());
out.println("Domain: " + node.getDomainName());