Result result = getInitializedResult();
ComponentNameConstructor compName = getVerifierContext().getComponentNameConstructor();
ClassLoader cl = getVerifierContext().getClassLoader();
try {
Method[] methods = descriptor.getMessageListenerInterfaceMethods(cl);
for (int i = 0; i < methods.length; i++) {
if(containsRemote(methods[i].getExceptionTypes())) {
addErrorDetails(result, compName);
result.failed(smh.getLocalString
(getClass().getName()+".failed",
"Method [ {0} ] throws RemoteException",
new Object[] {methods[i]}));
}
}
} catch (NoSuchMethodException e) {
Verifier.debug(e);
addErrorDetails(result, compName);
result.failed(smh.getLocalString
(getClass().getName()+".failed1",
"[ {0} ]", new Object[]{e.getMessage()}));
}
if(result.getStatus() != Result.FAILED) {
addGoodDetails(result, compName);
result.passed(smh.getLocalString
(getClass().getName() + ".passed",
"Valid message listener method(s)."));
}
return result;