changed so that the class loader can be specified.
This commit is contained in:
parent
4ef220d914
commit
40c826f820
|
|
@ -96,11 +96,11 @@ class CheckConfiguration
|
|||
* @throws InstantiationException if an error occurs
|
||||
* @throws IllegalAccessException if an error occurs
|
||||
*/
|
||||
Check createInstance()
|
||||
Check createInstance(ClassLoader aLoader)
|
||||
throws ClassNotFoundException, InstantiationException,
|
||||
IllegalAccessException
|
||||
{
|
||||
final Class clazz = Class.forName(mClassname);
|
||||
final Class clazz = Class.forName(mClassname, true, aLoader);
|
||||
final Check check = (Check) clazz.newInstance();
|
||||
// TODO: need to set the properties
|
||||
return check;
|
||||
|
|
|
|||
Loading…
Reference in New Issue