BFormService.java 文件源码

java
阅读 19 收藏 0 点赞 0 评论 0

项目:abstractform 作者:
@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;
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号