You are viewing a plain text version of this content. The canonical link for it is here.
Posted to kato-commits@incubator.apache.org by sp...@apache.org on 2009/05/21 14:01:57 UTC

svn commit: r777123 - /incubator/kato/trunk/org.apache.kato.jvmti/src/org/apache/kato/jvmti/process/ImageFactoryImpl.java

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;
+	}
+
 }