mirror of
https://github.com/corda/corda.git
synced 2025-01-06 05:04:20 +00:00
24 lines
559 B
Java
24 lines
559 B
Java
package java.lang;
|
|
|
|
import java.net.URL;
|
|
import java.net.MalformedURLException;
|
|
|
|
public class SystemClassLoader extends ClassLoader {
|
|
private Object map;
|
|
|
|
protected native Class findClass(String name) throws ClassNotFoundException;
|
|
|
|
protected native Class findLoadedClass(String name);
|
|
|
|
private native boolean resourceExists(String name);
|
|
|
|
protected URL findResource(String name) {
|
|
if (resourceExists(name)) {
|
|
try {
|
|
return new URL("resource:" + name);
|
|
} catch (MalformedURLException ignored) { }
|
|
}
|
|
return null;
|
|
}
|
|
}
|