incubator-kato-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From spo...@apache.org
Subject svn commit: r823481 - in /incubator/kato/trunk/org.apache.kato/kato.api/src: main/java/javax/tools/diagnostics/image/Image.java main/java/javax/tools/diagnostics/runtime/java/JavaRuntime.java test/java/test/apache/kato/TestFactoryRegistry.java
Date Fri, 09 Oct 2009 09:45:37 GMT
Author: spoole
Date: Fri Oct  9 09:45:37 2009
New Revision: 823481

URL: http://svn.apache.org/viewvc?rev=823481&view=rev
Log:
updated API and implementations to all  Images and Javaruntimes to return their File data
source

Modified:
    incubator/kato/trunk/org.apache.kato/kato.api/src/main/java/javax/tools/diagnostics/image/Image.java
    incubator/kato/trunk/org.apache.kato/kato.api/src/main/java/javax/tools/diagnostics/runtime/java/JavaRuntime.java
    incubator/kato/trunk/org.apache.kato/kato.api/src/test/java/test/apache/kato/TestFactoryRegistry.java

Modified: incubator/kato/trunk/org.apache.kato/kato.api/src/main/java/javax/tools/diagnostics/image/Image.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.api/src/main/java/javax/tools/diagnostics/image/Image.java?rev=823481&r1=823480&r2=823481&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.api/src/main/java/javax/tools/diagnostics/image/Image.java
(original)
+++ incubator/kato/trunk/org.apache.kato/kato.api/src/main/java/javax/tools/diagnostics/image/Image.java
Fri Oct  9 09:45:37 2009
@@ -13,6 +13,7 @@
  ******************************************************************************/
 package javax.tools.diagnostics.image;
 
+import java.io.File;
 import java.net.InetAddress;
 import java.util.Iterator;
 import java.util.List;
@@ -136,4 +137,9 @@
 	 * @see java.net.InetAddress
 	 */
 	public Iterator<InetAddress> getIPAddresses() throws DataUnavailable;
+	
+	/**
+	 * Experimenal
+	 */
+	public File getSource();
 }

Modified: incubator/kato/trunk/org.apache.kato/kato.api/src/main/java/javax/tools/diagnostics/runtime/java/JavaRuntime.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.api/src/main/java/javax/tools/diagnostics/runtime/java/JavaRuntime.java?rev=823481&r1=823480&r2=823481&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.api/src/main/java/javax/tools/diagnostics/runtime/java/JavaRuntime.java
(original)
+++ incubator/kato/trunk/org.apache.kato/kato.api/src/main/java/javax/tools/diagnostics/runtime/java/JavaRuntime.java
Fri Oct  9 09:45:37 2009
@@ -14,6 +14,7 @@
 package javax.tools.diagnostics.runtime.java;
 
 
+import java.io.File;
 import java.util.List;
 
 import javax.tools.diagnostics.image.CorruptDataException;
@@ -191,4 +192,13 @@
 	 */
 	public boolean equals(Object obj);
 	public int hashCode();
+
+	/**
+	 * Returns the File used as source for the creation of this Runtime.
+	 * This File will be equal to the file presented to the FactoryRegistry 
+	 * when this runtime (or its parent Image) was created.
+	 * 
+	 * @return File object 
+	 */
+	File getSource();
 }

Modified: incubator/kato/trunk/org.apache.kato/kato.api/src/test/java/test/apache/kato/TestFactoryRegistry.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.api/src/test/java/test/apache/kato/TestFactoryRegistry.java?rev=823481&r1=823480&r2=823481&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.api/src/test/java/test/apache/kato/TestFactoryRegistry.java
(original)
+++ incubator/kato/trunk/org.apache.kato/kato.api/src/test/java/test/apache/kato/TestFactoryRegistry.java
Fri Oct  9 09:45:37 2009
@@ -161,6 +161,12 @@
 			// TODO Auto-generated method stub
 			return null;
 		}
+
+		@Override
+		public File getSource() {
+			// TODO Auto-generated method stub
+			return null;
+		}
 		
 	}
 	private final class MockImage implements Image {
@@ -218,6 +224,12 @@
 
 			return null;
 		}
+
+		@Override
+		public File getSource() {
+			// TODO Auto-generated method stub
+			return null;
+		}
 	}
 
 	public void testConstructor() {
@@ -357,4 +369,8 @@
 		
 		
 	}
+
+public void testRuntimeReturnsFileName() {
+	
+}
 }



Mime
View raw message