Result result = getInitializedResult();
ComponentNameConstructor compName =
getVerifierContext().getComponentNameConstructor();
Set<String> remoteAndLocalIntfs = descriptor.getRemoteBusinessClassNames();
remoteAndLocalIntfs.addAll(descriptor.getLocalBusinessClassNames());
for (String remoteOrLocalIntf : remoteAndLocalIntfs) {
try {
ClassLoader classLoader = getVerifierContext().getClassLoader();
Class c = Class.forName(remoteOrLocalIntf, false, classLoader);
if(!c.isInterface()) {
addErrorDetails(result, compName);
result.failed(smh.getLocalString
(getClass().getName() + ".failed",
"[ {0} ] is defined as a class. It should be an interface.",
new Object[] {c}));
}
} catch (ClassNotFoundException e) {
// ignore as it will be caught in other tests
}
}
if(result.getStatus() != Result.FAILED) {
addGoodDetails(result, compName);
result.passed(smh.getLocalString
(getClass().getName() + ".passed",
"Business Interface(s) are valid."));
}
return result;