tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jsdelf...@apache.org
Subject svn commit: r618930 - in /incubator/tuscany/java/sca/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution: Artifact.java impl/ArtifactImpl.java impl/ContributionImpl.java impl/WorkspaceImpl.java
Date Wed, 06 Feb 2008 09:15:52 GMT
Author: jsdelfino
Date: Wed Feb  6 01:15:49 2008
New Revision: 618930

URL: http://svn.apache.org/viewvc?rev=618930&view=rev
Log:
Adding a contents field to Artifact to optionally keep the in-memory contents of the artifact.

Modified:
    incubator/tuscany/java/sca/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/Artifact.java
    incubator/tuscany/java/sca/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/impl/ArtifactImpl.java
    incubator/tuscany/java/sca/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/impl/ContributionImpl.java
    incubator/tuscany/java/sca/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/impl/WorkspaceImpl.java

Modified: incubator/tuscany/java/sca/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/Artifact.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/Artifact.java?rev=618930&r1=618929&r2=618930&view=diff
==============================================================================
--- incubator/tuscany/java/sca/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/Artifact.java
(original)
+++ incubator/tuscany/java/sca/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/Artifact.java
Wed Feb  6 01:15:49 2008
@@ -72,4 +72,15 @@
      */
     void setModel(Object model);
 
+    /**
+     * Returns the contents of the artifact cached here.
+     * @return the contents of the artifact
+     */
+    byte[] getContents();
+    
+    /**
+     * Sets the contents of the artifact.
+     * @param contents the contents of the artifact
+     */
+    void setContents(byte[] contents);
 }

Modified: incubator/tuscany/java/sca/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/impl/ArtifactImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/impl/ArtifactImpl.java?rev=618930&r1=618929&r2=618930&view=diff
==============================================================================
--- incubator/tuscany/java/sca/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/impl/ArtifactImpl.java
(original)
+++ incubator/tuscany/java/sca/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/impl/ArtifactImpl.java
Wed Feb  6 01:15:49 2008
@@ -32,6 +32,7 @@
     private String location;
     private Object model;
     private boolean unresolved;
+    private byte[] contents;
 
     ArtifactImpl() {
     }
@@ -58,6 +59,14 @@
     
     public void setModel(Object model) {
         this.model = model;
+    }
+
+    public byte[] getContents() {
+        return contents;
+    }
+    
+    public void setContents(byte[] contents) {
+        this.contents = contents;
     }
     
     public boolean isUnresolved() {

Modified: incubator/tuscany/java/sca/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/impl/ContributionImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/impl/ContributionImpl.java?rev=618930&r1=618929&r2=618930&view=diff
==============================================================================
--- incubator/tuscany/java/sca/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/impl/ContributionImpl.java
(original)
+++ incubator/tuscany/java/sca/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/impl/ContributionImpl.java
Wed Feb  6 01:15:49 2008
@@ -38,6 +38,7 @@
     private String uri;
     private String location;
     private Object model;
+    private byte[] contents;
     private boolean unresolved;
     private List<Export> exports = new ArrayList<Export>();
     private List<Import> imports = new ArrayList<Import>();
@@ -83,6 +84,14 @@
     
     public void setModel(Object model) {
         this.model = model;
+    }
+    
+    public byte[] getContents() {
+        return contents;
+    }
+    
+    public void setContents(byte[] contents) {
+        this.contents = contents;
     }
     
     public boolean isUnresolved() {

Modified: incubator/tuscany/java/sca/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/impl/WorkspaceImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/impl/WorkspaceImpl.java?rev=618930&r1=618929&r2=618930&view=diff
==============================================================================
--- incubator/tuscany/java/sca/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/impl/WorkspaceImpl.java
(original)
+++ incubator/tuscany/java/sca/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/impl/WorkspaceImpl.java
Wed Feb  6 01:15:49 2008
@@ -34,6 +34,8 @@
     
     private String location;
     private String uri;
+    private Object model;
+    private byte[] contents;
     private boolean unresolved;
     private List<Contribution> contributions = new ArrayList<Contribution>();
     
@@ -48,7 +50,7 @@
     }
 
     public Object getModel() {
-        return null;
+        return model;
     }
 
     public String getURI() {
@@ -60,8 +62,17 @@
     }
 
     public void setModel(Object model) {
+        this.model = model;
     }
 
+    public byte[] getContents() {
+        return contents;
+    }
+    
+    public void setContents(byte[] contents) {
+        this.contents = contents;
+    }
+    
     public void setURI(String uri) {
         this.uri = uri;
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org


Mime
View raw message