You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by an...@apache.org on 2010/08/02 14:57:32 UTC
svn commit: r981494 -
/tuscany/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/node2/Node.java
Author: antelder
Date: Mon Aug 2 12:57:31 2010
New Revision: 981494
URL: http://svn.apache.org/viewvc?rev=981494&view=rev
Log:
Update all the install methods to return the uri of the installed contribution which simplifies the use of default URIs
Modified:
tuscany/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/node2/Node.java
Modified: tuscany/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/node2/Node.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/node2/Node.java?rev=981494&r1=981493&r2=981494&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/node2/Node.java (original)
+++ tuscany/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/node2/Node.java Mon Aug 2 12:57:31 2010
@@ -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