diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2010-08-02 12:57:31 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2010-08-02 12:57:31 +0000 |
commit | 6f2ce523bebbe1c91bb0a0c8955683fee1947809 (patch) | |
tree | e8c4d86dd11c7aba1a84bbe828d3956ce04cd4a8 | |
parent | ec05775f078e1b09935afc7b0d326d13ca52257f (diff) |
Update all the install methods to return the uri of the installed contribution which simplifies the use of default URIs
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@981494 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/node2/Node.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/node2/Node.java b/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/node2/Node.java index 4b60ed0ac9..7606fa415a 100644 --- a/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/node2/Node.java +++ b/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/node2/Node.java @@ -46,12 +46,13 @@ public interface Node { * root contribution and other dependent contributions. May be null. * @param runDeployables true if the composites defined as deployable in the contributions sca-contribution.xml * file or supplied metaData file should be run, false if they should not be. + * @return the URI of the installed contribution * * @throws ContributionReadException * @throws ActivationException * @throws ValidationException */ - void installContribution(String uri, String contributionURL, String metaDataURL, List<String> dependentContributionURIs, boolean runDeployables) throws ContributionReadException, ActivationException, ValidationException; + String installContribution(String uri, String contributionURL, String metaDataURL, List<String> dependentContributionURIs, boolean runDeployables) throws ContributionReadException, ActivationException, ValidationException; /** * Creates an installed contribution from a supplied Contribution object. @@ -62,19 +63,20 @@ public interface Node { * root contribution and other dependent contributions. May be null. * @param runDeployables true if the composites defined as deployable in the contributions sca-contribution.xml * file or supplied metaData file should be run, false if they should not be. + * @return the URI of the installed contribution * * @throws ContributionReadException * @throws ActivationException * @throws ValidationException */ - void installContribution(Contribution contribution, List<String> dependentContributionURIs, boolean runDeployables) throws ContributionReadException, ActivationException, ValidationException; + String installContribution(Contribution contribution, List<String> dependentContributionURIs, boolean runDeployables) throws ContributionReadException, ActivationException, ValidationException; /** * Creates an installed contribution from a supplied root contribution. * See section 10.5.1 of the Assembly Specification. * * @param contributionURL the URL where the contribution is located - * @return the URI where the contribution was installed + * @return the URI of the installed contribution * * @throws ContributionReadException * @throws ActivationException |