/** * Creates a new TuscanyRuntime * @return a TuscanyRuntime */ public static TuscanyRuntime newInstance() { return new TuscanyRuntime(null); }
/** * Creates a Node * @return a Node */ public Node createNode() { return createNode((String)null); }
/** * A helper method to run a standalone SCA composite in the default standalone SCA domain. * @param compositeURI URI within the contribution of a composite to run * if compositeURI is null then all deployable composites in the contribution will be run * @param contributionURL URL of the contribution * @param dependentContributionURLs optional URLs of dependent contributions * @return a Node with installed contributions */ public static Node runComposite(String compositeURI, String contributionURL, String... dependentContributionURLs) { return runComposite(null, compositeURI, contributionURL, dependentContributionURLs); }
boolean domainComposite() { Composite domainComposite = getNode().getDomainComposite(); System.out.println(Utils.modelToXML(domainComposite, true, runtime.getExtensionPointRegistry())); 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 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; }
@Override public boolean invoke(String[] args) throws Exception { shell.getNode().uninstallContribution(args[0]); return true; }
protected TuscanyRuntime(Properties config) { init(config); }
boolean domainComposite() { Composite domainComposite = getNode().getDomainComposite(); System.out.println(Utils.modelToXML(domainComposite, true, runtime.getExtensionPointRegistry())); 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 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; }
@Override public boolean invoke(String[] args) throws Exception { shell.getNode().uninstallContribution(args[0]); return true; }
/** * Creates a Node * @return a Node */ public Node createNode() { return createNode((String)null); }
/** * Creates a new TuscanyRuntime * @param config Properties to configure the TuscanyRuntime * @return a TuscanyRuntime */ public static TuscanyRuntime newInstance(Properties config) { return new TuscanyRuntime(config); }
/** * A helper method to run a standalone SCA composite in the default standalone SCA domain. * @param compositeURI URI within the contribution of a composite to run * if compositeURI is null then all deployable composites in the contribution will be run * @param contributionURL URL of the contribution * @param dependentContributionURLs optional URLs of dependent contributions * @return a Node with installed contributions */ public static Node runComposite(String compositeURI, String contributionURL, String... dependentContributionURLs) { return runComposite(null, compositeURI, contributionURL, dependentContributionURLs); }
protected TuscanyRuntime(Properties config) { init(config); }
/** * Creates a new TuscanyRuntime * @return a TuscanyRuntime */ public static TuscanyRuntime newInstance() { return new TuscanyRuntime(null); }
/** * Creates a new TuscanyRuntime * @param config Properties to configure the TuscanyRuntime * @return a TuscanyRuntime */ public static TuscanyRuntime newInstance(Properties config) { return new TuscanyRuntime(config); }