Added separate constructor that allows for a parent class loader argument.

Use the standard parent class loader in the old (single argument) constructor.
This commit is contained in:
hns 2003-11-05 11:48:57 +00:00
parent 2b3b10e1e1
commit b8914ce0fd

View file

@ -30,7 +30,17 @@ public class FilteredClassLoader extends URLClassLoader {
* so that they can load classes from jar files in the app directories.
*/
public FilteredClassLoader(URL[] urls) {
super(urls, null);
super(urls);
}
/**
* Create a server wide class loader that doesn't see the scripting engine(s)
* embedded in helma.jar. These files should be loaded by the per-application
* class loaders so that special security policies can be applied to them and
* so that they can load classes from jar files in the app directories.
*/
public FilteredClassLoader(URL[] urls, ClassLoader parent) {
super(urls, parent);
}
/**