diff options
author | Tom Tromey <tromey@redhat.com> | 2006-03-02 18:37:33 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2006-03-02 18:37:33 +0000 |
commit | 394e32e947178ce2e9b8c7432c95108c0d89bbce (patch) | |
tree | 971c2debe68d0aedf8081c3ff0878a4a7a76e3d6 /java/rmi | |
parent | af2778e5ce3de7dd69200b4dbf134b218ec3dd1f (diff) | |
download | classpath-394e32e947178ce2e9b8c7432c95108c0d89bbce.tar.gz |
* java/rmi/server/RMIClassLoader.java (loadProxyClass): New method.
Diffstat (limited to 'java/rmi')
-rw-r--r-- | java/rmi/server/RMIClassLoader.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/java/rmi/server/RMIClassLoader.java b/java/rmi/server/RMIClassLoader.java index f8997fd7e..761d99830 100644 --- a/java/rmi/server/RMIClassLoader.java +++ b/java/rmi/server/RMIClassLoader.java @@ -84,6 +84,16 @@ public class RMIClassLoader return spi.loadClass(codebase, name, defaultLoader); } + public static Class loadProxyClass (String codeBase, String[] interfaces, + ClassLoader defaultLoader) + throws MalformedURLException, ClassNotFoundException + { + RMIClassLoaderSpi spi = getProviderInstance(); + if (spi == null) + spi = getDefaultProviderInstance(); + return spi.loadProxyClass(codeBase, interfaces, defaultLoader); + } + /** * Loads a class from <code>codeBase</code>. * |