]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.reflection/src/org/simantics/scl/reflection/internal/registry/ExternalMethod.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.scl.reflection / src / org / simantics / scl / reflection / internal / registry / ExternalMethod.java
old mode 100755 (executable)
new mode 100644 (file)
index 582c0cf..706e22e
@@ -1,35 +1,35 @@
-package org.simantics.scl.reflection.internal.registry;\r
-\r
-import java.lang.reflect.Method;\r
-\r
-import org.osgi.framework.Bundle;\r
-\r
-public class ExternalMethod {\r
-    public final Bundle bundle;\r
-    public final String className;\r
-    public final String methodName;\r
-    public final String alternativeName;\r
-    \r
-    public ExternalMethod(Bundle bundle, String className, String methodName,\r
-            String alternativeName) {\r
-        this.bundle = bundle;\r
-        this.className = className;\r
-        this.methodName = methodName;\r
-        this.alternativeName = alternativeName;\r
-    }    \r
-    \r
-    public Class<?> loadClass() {\r
-        try {\r
-            return bundle.loadClass(className);\r
-        } catch (ClassNotFoundException e) {\r
-            return null;\r
-        }   \r
-    }\r
-    \r
-    public Method getMethod(Class<?> clazz) {\r
-        for(Method method : clazz.getMethods())\r
-            if(method.getName().equals(methodName))\r
-                return method;\r
-        return null;\r
-    }\r
-}\r
+package org.simantics.scl.reflection.internal.registry;
+
+import java.lang.reflect.Method;
+
+import org.osgi.framework.Bundle;
+
+public class ExternalMethod {
+    public final Bundle bundle;
+    public final String className;
+    public final String methodName;
+    public final String alternativeName;
+    
+    public ExternalMethod(Bundle bundle, String className, String methodName,
+            String alternativeName) {
+        this.bundle = bundle;
+        this.className = className;
+        this.methodName = methodName;
+        this.alternativeName = alternativeName;
+    }    
+    
+    public Class<?> loadClass() {
+        try {
+            return bundle.loadClass(className);
+        } catch (ClassNotFoundException e) {
+            return null;
+        }   
+    }
+    
+    public Method getMethod(Class<?> clazz) {
+        for(Method method : clazz.getMethods())
+            if(method.getName().equals(methodName))
+                return method;
+        return null;
+    }
+}