tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From antel...@apache.org
Subject svn commit: r1124557 - in /tuscany/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca: Node.java impl/NodeImpl.java
Date Thu, 19 May 2011 06:40:53 GMT
Author: antelder
Date: Thu May 19 06:40:53 2011
New Revision: 1124557

URL: http://svn.apache.org/viewvc?rev=1124557&view=rev
Log:
Remove ActivationException on installs, add some TODO comments

Modified:
    tuscany/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/Node.java
    tuscany/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/impl/NodeImpl.java

Modified: tuscany/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/Node.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/Node.java?rev=1124557&r1=1124556&r2=1124557&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/Node.java
(original)
+++ tuscany/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/Node.java
Thu May 19 06:40:53 2011
@@ -47,10 +47,9 @@ public interface Node {
      * @return the URI of the installed contribution
      * 
      * @throws ContributionReadException 
-     * @throws ActivationException 
      * @throws ValidationException 
      */
-    String installContribution(String contributionURL) throws ContributionReadException,
ActivationException, ValidationException;
+    String installContribution(String contributionURL) throws ContributionReadException,
ValidationException;
     
     /**
      * Creates an installed contribution from a supplied root contribution and installed
at a supplied base URI.
@@ -65,10 +64,9 @@ public interface Node {
      * @return the URI of the installed contribution
      * 
      * @throws ContributionReadException 
-     * @throws ActivationException 
      * @throws ValidationException 
      */
-    String installContribution(String uri, String contributionURL, String metaDataURL, List<String>
dependentContributionURIs) throws ContributionReadException, ActivationException, ValidationException;
+    String installContribution(String uri, String contributionURL, String metaDataURL, List<String>
dependentContributionURIs) throws ContributionReadException, ValidationException;
 
     /**
      * Creates an installed contribution from a supplied Contribution object.
@@ -134,9 +132,8 @@ public interface Node {
      * 
      * @param contributionURI
      * @return List of contribution URIs (includes dependent contributions) which were removed
-     * @throws ActivationException 
      */
-    void uninstallContribution(String contributionURI) throws ActivationException;
+    void uninstallContribution(String contributionURI);
 
     /**
      * 4677 10.7.1 add To Domain-Level Composite
@@ -248,4 +245,5 @@ public interface Node {
     //   start and stop composites on remote members
     //   get/display contribution content
     //   a view-only Node
+    //   dirty started composites (contributions updated while composite running)
 }

Modified: tuscany/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/impl/NodeImpl.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/impl/NodeImpl.java?rev=1124557&r1=1124556&r2=1124557&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/impl/NodeImpl.java
(original)
+++ tuscany/sca-java-2.x/trunk/modules/domain-node/src/main/java/org/apache/tuscany/sca/impl/NodeImpl.java
Thu May 19 06:40:53 2011
@@ -93,15 +93,18 @@ public class NodeImpl implements Node {
         });
     }
 
-    public String installContribution(String contributionURL) throws ContributionReadException,
ActivationException, ValidationException {
+    // TODO: install shouldn't throw ValidationException as it shouldn't do any validation,
its
+    //      only here from the loadContribution in mergeContributionMetaData so change that
approach
+    
+    public String installContribution(String contributionURL) throws ContributionReadException,
ValidationException {
         return installContribution(null, contributionURL, null, null);
     }
 
-    public String installContribution(String uri, String contributionURL) throws ContributionReadException,
ActivationException, ValidationException {
+    public String installContribution(String uri, String contributionURL) throws ContributionReadException,
ValidationException {
         return installContribution(uri, contributionURL, null, null);
     }
 
-    public String installContribution(String uri, String contributionURL, String metaDataURL,
List<String> dependentContributionURIs) throws ContributionReadException, ActivationException,
ValidationException {
+    public String installContribution(String uri, String contributionURL, String metaDataURL,
List<String> dependentContributionURIs) throws ContributionReadException, ValidationException
{
         InstalledContribution ic = new InstalledContribution(uri, contributionURL);
 
         if (dependentContributionURIs != null) {



Mime
View raw message