summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/contrib/modules/section10/src/main/java/org/apache/tuscany/sca/something/Section10.java
diff options
context:
space:
mode:
Diffstat (limited to 'sca-java-2.x/contrib/modules/section10/src/main/java/org/apache/tuscany/sca/something/Section10.java')
-rw-r--r--sca-java-2.x/contrib/modules/section10/src/main/java/org/apache/tuscany/sca/something/Section10.java23
1 files changed, 13 insertions, 10 deletions
diff --git a/sca-java-2.x/contrib/modules/section10/src/main/java/org/apache/tuscany/sca/something/Section10.java b/sca-java-2.x/contrib/modules/section10/src/main/java/org/apache/tuscany/sca/something/Section10.java
index d351426c13..dcdc8f71ab 100644
--- a/sca-java-2.x/contrib/modules/section10/src/main/java/org/apache/tuscany/sca/something/Section10.java
+++ b/sca-java-2.x/contrib/modules/section10/src/main/java/org/apache/tuscany/sca/something/Section10.java
@@ -20,13 +20,13 @@
package org.apache.tuscany.sca.something;
import java.io.Reader;
-import java.net.MalformedURLException;
import java.util.List;
import javax.xml.namespace.QName;
import org.apache.tuscany.sca.assembly.Composite;
import org.apache.tuscany.sca.contribution.processor.ContributionReadException;
+import org.apache.tuscany.sca.runtime.ActivationException;
import org.oasisopen.sca.NoSuchServiceException;
public interface Section10 {
@@ -56,17 +56,17 @@ public interface Section10 {
* 4598 this list to be generated by tooling. *
* @param uri
* @param contributionURL
- * @throws MalformedURLException
* @throws ContributionReadException
+ * @throws ActivationException
*/
- void installContribution(String uri, String contributionURL, List<String> dependentContributionURIs) throws ContributionReadException, MalformedURLException;
+ void installContribution(String uri, String contributionURL, List<String> dependentContributionURIs) throws ContributionReadException, ActivationException;
/* and i'd expect short forms of that for when you don't care or have the others:*/
- String installContribution(String contributionURL) throws ContributionReadException, MalformedURLException;
- void installContribution(String uri, String contributionURL) throws ContributionReadException, MalformedURLException;
+ String installContribution(String contributionURL) throws ContributionReadException, ActivationException;
+ void installContribution(String uri, String contributionURL) throws ContributionReadException, ActivationException;
/* autoDeploy indicates whether or not to automatically deploy the deployables defined in sca-contribution.xml */
- String installContribution(String contributionURL, boolean autoDeploy) throws ContributionReadException, MalformedURLException;
- void installContribution(String uri, String contributionURL, List<String> dependentContributionURIs, boolean autoDeploy) throws ContributionReadException, MalformedURLException;
+ String installContribution(String contributionURL, boolean autoDeploy) throws ContributionReadException, ActivationException;
+ void installContribution(String uri, String contributionURL, List<String> dependentContributionURIs, boolean autoDeploy) throws ContributionReadException, ActivationException;
/**
* 4577 10.5.1 install Contribution & update Contribution
@@ -148,8 +148,9 @@ public interface Section10 {
* 4612 Removes the deployed contribution identified by a supplied contribution URI.
*
* @param contributionURI
+ * @throws ActivationException
*/
- void removeContribution(String contributionURI);
+ void removeContribution(String contributionURI) throws ActivationException;
/**
* 4677 10.7.1 add To Domain-Level Composite
@@ -163,8 +164,9 @@ public interface Section10 {
* 4686 outside the domain composite, the usual idea of promotion has no utility.
*
* @param compositeURI
+ * @throws ActivationException
*/
- void addToDomainLevelComposite(String compositeURI);
+ void addToDomainLevelComposite(String compositeURI) throws ActivationException;
/**
* 4687 10.7.2 remove From Domain-Level Composite
@@ -172,8 +174,9 @@ public interface Section10 {
* 4689 supplied composite URI. This means that the removal of the components, wires, services and references
* 4690 originally added to the domain level composite by the identified composite. *
* @param compositeURI
+ * @throws ActivationException
*/
- void removeFromDomainLevelComposite(String compositeURI);
+ void removeFromDomainLevelComposite(String compositeURI) throws ActivationException;
/**
* 10.7.3 get Domain-Level Composite