summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2011-05-23 06:27:13 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2011-05-23 06:27:13 +0000
commit9035a82d24ae4efe29a1bb414b627b00a5b24d73 (patch)
tree259699d8b34e92c36071effe5e5c61658bd5145f
parentd1ef2011feade03df3916a93930fbc2f60327aa8 (diff)
Add a link from a Composite to its contribution
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1126326 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Composite.java3
-rw-r--r--sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/CompositeImpl.java11
2 files changed, 14 insertions, 0 deletions
diff --git a/sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Composite.java b/sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Composite.java
index 64a55f1b44..2e8df8011f 100644
--- a/sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Composite.java
+++ b/sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/Composite.java
@@ -50,6 +50,9 @@ public interface Composite extends Implementation, Extensible, Cloneable, Policy
*/
void setSpecVersion(String specVersion);
+ String getContributionURI();
+ void setContributionURI(String contributionURI);
+
/**
* Returns the name of the composite.
*
diff --git a/sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/CompositeImpl.java b/sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/CompositeImpl.java
index fba6af7e7f..ddc28f2b71 100644
--- a/sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/CompositeImpl.java
+++ b/sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/impl/CompositeImpl.java
@@ -40,6 +40,7 @@ import org.apache.tuscany.sca.assembly.Wire;
*/
public class CompositeImpl extends ImplementationImpl implements Composite, Cloneable {
private String specVersion = "undefined";
+ private String contributionURI;
private List<Component> components = new ArrayList<Component>();
private List<Composite> includes = new ArrayList<Composite>();
private QName name;
@@ -182,4 +183,14 @@ public class CompositeImpl extends ImplementationImpl implements Composite, Clon
public String toString() {
return "Composite (name=" + getName() + ")";
}
+
+ @Override
+ public String getContributionURI() {
+ return contributionURI;
+ }
+
+ @Override
+ public void setContributionURI(String contributionURI) {
+ this.contributionURI = contributionURI;
+ }
}