implClazz = ImplementorFinder.getImplClass(beanClazz, beanMapping);
} catch (FindBeanImplClassException e) {
String message = String.format("Look for spring bean for property[%s] of class[%s] error!", beanName,
ownerClazz.getName());
JTesterLogger.warn(message);
throw new FindBeanImplClassException(message, e);
}
}
if (implClazz == null || ClazzHelper.isInterfaceOrAbstract(implClazz)) {
return null;
}
try {
Constructor c = implClazz.getDeclaredConstructor(new Class[] {});
if (c == null) {
return null;
}
return implClazz;
} catch (Throwable e) {
String error = String.format("find default constructor function of class[%s] error.", implClazz.getName());
throw new FindBeanImplClassException(error, e);
}
}