KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jruby > util > JRubyClassLoader


1 package org.jruby.util;
2
3 import java.net.URL JavaDoc;
4 import java.net.URLClassLoader JavaDoc;
5
6 public class JRubyClassLoader extends URLClassLoader JavaDoc {
7     public JRubyClassLoader(ClassLoader JavaDoc parent) {
8         super(new URL JavaDoc[0], parent);
9     }
10
11     public void addURL(URL JavaDoc url) {
12         super.addURL(url);
13     }
14     
15     public Class JavaDoc defineClass(String JavaDoc name, byte[] bytes) {
16        return super.defineClass(name, bytes, 0, bytes.length);
17     }
18 }
19
Popular Tags