Result result = getInitializedResult();
ComponentNameConstructor compName = getVerifierContext().getComponentNameConstructor();
Set<EjbInterceptor> interceptors = descriptor.getInterceptorClasses();
for (EjbInterceptor interceptor : interceptors) {
try {
Class interceptorClass = Class.forName(interceptor.getInterceptorClassName(),
false,
getVerifierContext().getClassLoader());
try {
interceptorClass.getConstructor(new Class[]{});
} catch (NoSuchMethodException e) {
result.getFaultLocation().setFaultyClass(interceptorClass);
addErrorDetails(result, compName);
result.failed(smh.getLocalString
(getClass().getName() + ".failed",
"Interceptor class [ {0} ] does not have a " +
"public constructor with no arguments.",
new Object[] {interceptorClass}));
}
} catch (ClassNotFoundException e) {}// will be caught in other tests
}
if(result.getStatus()!=Result.FAILED) {
addGoodDetails(result, compName);
result.passed(smh.getLocalString
(getClass().getName() + ".passed",
"Valid Interceptor(s) used."));
}
return result;