Result result = getInitializedResult();
ComponentNameConstructor compName = getVerifierContext().getComponentNameConstructor();
ClassLoader cl = getVerifierContext().getClassLoader();
String localClassName = descriptor.getLocalHomeClassName();
if (localClassName!=null) {
try {
Class localHome = Class.forName(localClassName, false, cl);
Method[] methods = localHome.getMethods();
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 a RemoteException.",
new Object[]{methods[i]}));
}
}
} catch (ClassNotFoundException e) {
Verifier.debug(e);
addErrorDetails(result, compName);
result.failed(smh.getLocalString
(getClass().getName()+".failed1",
"LocalHome class [ {0} ] not found.",
new Object[]{localClassName}));
}
}
if(result.getStatus() != Result.FAILED) {
addGoodDetails(result, compName);
result.passed(smh.getLocalString
(getClass().getName() + ".passed",
"Valid LocalInterface."));
}
return result;