validator = (Validator)
Class.forName(validatorClassName).newInstance();
}
catch (InstantiationException e)
{
throw new IntakeException(
"Could not create new instance of Validator("
+ validatorClassName + ")", e);
}
catch (IllegalAccessException e)
{
throw new IntakeException(
"Could not create new instance of Validator("
+ validatorClassName + ")", e);
}
catch (ClassNotFoundException e)
{
throw new IntakeException(
"Could not load Validator class("
+ validatorClassName + ")", e);
}
// this should always be true for now
// (until bean property initialization is implemented)