@SuppressWarnings({ "unchecked" })
public <S> BFormToolkit<S> getFormToolkit(Class<S> implementationClass) throws ServiceNotFoundException {
Iterator<BFormToolkit> it = loader.iterator();
BFormToolkit toolkit = null;
while (toolkit == null && it.hasNext()) {
BFormToolkit tl = it.next();
if (implementationClass.isAssignableFrom(tl.getImplementationClass())) {
toolkit = tl;
}
}
if (toolkit == null) {
throw new ServiceNotFoundException();
} else {
return toolkit;
}
}
BFormService.java 文件源码
java
阅读 19
收藏 0
点赞 0
评论 0
项目:abstractform
作者:
评论列表
文章目录