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:
parent
2b3b10e1e1
commit
b8914ce0fd
1 changed files with 11 additions and 1 deletions
|
@ -30,7 +30,17 @@ public class FilteredClassLoader extends URLClassLoader {
|
||||||
* so that they can load classes from jar files in the app directories.
|
* so that they can load classes from jar files in the app directories.
|
||||||
*/
|
*/
|
||||||
public FilteredClassLoader(URL[] urls) {
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue