tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From antel...@apache.org
Subject svn commit: r1103527 - in /tuscany/sca-java-2.x/trunk/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution: Contribution.java impl/ContributionImpl.java
Date Sun, 15 May 2011 20:12:01 GMT
Author: antelder
Date: Sun May 15 20:12:00 2011
New Revision: 1103527

URL: http://svn.apache.org/viewvc?rev=1103527&view=rev
Log:
Add a method to add a Composite to a Contribution

Modified:
    tuscany/sca-java-2.x/trunk/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/Contribution.java
    tuscany/sca-java-2.x/trunk/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/impl/ContributionImpl.java

Modified: tuscany/sca-java-2.x/trunk/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/Contribution.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/Contribution.java?rev=1103527&r1=1103526&r2=1103527&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/Contribution.java
(original)
+++ tuscany/sca-java-2.x/trunk/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/Contribution.java
Sun May 15 20:12:00 2011
@@ -131,4 +131,6 @@ public interface Contribution extends Ar
     <T> T getArtifactModel(String uri);
 
     void mergeMetaData(ContributionMetadata metaData);
+
+    void addComposite(Composite composite);
 }
\ No newline at end of file

Modified: tuscany/sca-java-2.x/trunk/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/impl/ContributionImpl.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/impl/ContributionImpl.java?rev=1103527&r1=1103526&r2=1103527&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/impl/ContributionImpl.java
(original)
+++ tuscany/sca-java-2.x/trunk/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/impl/ContributionImpl.java
Sun May 15 20:12:00 2011
@@ -184,4 +184,13 @@ class ContributionImpl extends Extensibl
             deployables.addAll(metaData.getDeployables());
         }
     }
+
+    @Override
+    public void addComposite(Composite composite) {
+        Artifact a = new ArtifactImpl();
+        a.setURI(composite.getURI());
+        a.setModel(composite);
+        a.setUnresolved(false);
+        artifacts.add(a);
+    }
 }



Mime
View raw message