incubator-kato-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From spo...@apache.org
Subject svn commit: r777123 - /incubator/kato/trunk/org.apache.kato.jvmti/src/org/apache/kato/jvmti/process/ImageFactoryImpl.java
Date Thu, 21 May 2009 14:01:57 GMT
Author: spoole
Date: Thu May 21 14:01:57 2009
New Revision: 777123

URL: http://svn.apache.org/viewvc?rev=777123&view=rev
Log:
update jvmti project to use service registry machanism and to implement suffix based support
for factory registry

Modified:
    incubator/kato/trunk/org.apache.kato.jvmti/src/org/apache/kato/jvmti/process/ImageFactoryImpl.java

Modified: incubator/kato/trunk/org.apache.kato.jvmti/src/org/apache/kato/jvmti/process/ImageFactoryImpl.java
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato.jvmti/src/org/apache/kato/jvmti/process/ImageFactoryImpl.java?rev=777123&r1=777122&r2=777123&view=diff
==============================================================================
--- incubator/kato/trunk/org.apache.kato.jvmti/src/org/apache/kato/jvmti/process/ImageFactoryImpl.java
(original)
+++ incubator/kato/trunk/org.apache.kato.jvmti/src/org/apache/kato/jvmti/process/ImageFactoryImpl.java
Thu May 21 14:01:57 2009
@@ -22,6 +22,8 @@
 
 public class ImageFactoryImpl implements ImageFactory{
 
+	private static String[] suffixes=new String[]{"kato"};
+	
 	@Override
 	public Image getImage(File arg0) throws IOException {
 		return new ImageImpl(arg0);
@@ -51,4 +53,9 @@
 		return 0;
 	}
 
+	@Override
+	public String[] getValidFileExtensions() {
+		return suffixes;
+	}
+
 }



Mime
View raw message