Set<EjbInitInfo> initMethods = descriptor.getInitMethods();
for (EjbInitInfo initInfo : initMethods) {
Method method = initInfo.getBeanMethod().getMethod(descriptor);
if(!method.getReturnType().getName().equals("void")) {
addErrorDetails(result, compName);
result.failed(smh.getLocalString
(getClass().getName()+".failed",
"Wrong init method [ {0} ].",
new Object[] {method}));
}
}
if(result.getStatus() != Result.FAILED) {
addGoodDetails(result, compName);
result.passed(smh.getLocalString
(getClass().getName()+".passed",
"Valid init method(s)."));
}
return result;