changed so that the class loader can be specified.

This commit is contained in:
Oliver Burn 2002-09-19 00:34:35 +00:00
parent 4ef220d914
commit 40c826f820
1 changed files with 2 additions and 2 deletions

View File

@ -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;