KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > codehaus > groovy > control > CompilerClassLoader


1 package org.codehaus.groovy.control;
2
3 import java.io.File JavaDoc;
4 import java.net.URL JavaDoc;
5 import java.net.URLClassLoader JavaDoc;
6 import java.net.MalformedURLException JavaDoc;
7
8 public class CompilerClassLoader
9     extends URLClassLoader JavaDoc
10 {
11     private static final URL JavaDoc[] EMPTY_URL_ARRAY = new URL JavaDoc[0];
12
13     public CompilerClassLoader()
14     {
15         super( EMPTY_URL_ARRAY );
16     }
17
18     public void addPath(String JavaDoc path)
19         throws MalformedURLException JavaDoc
20     {
21         addURL( new File JavaDoc( path ).toURL() );
22     }
23 }
24
Popular Tags