com.baidu.unbiz.fluentvalidator.registry
接口 Registry

所有已知实现类:
SimpleRegistry

public interface Registry

Bean注册查找器

框架内部的FluentValidator使用此接口来查找验证器Validator实例,可以看做通用的容器查找入口。 简单的通过当前的ClassLoader通过反射初始化一个Validator实例,也可以选择使用Spring等IoC容器,使用ApplicationContext查找验证器Validator

作者:
zhangxu

方法摘要
<T> List<T>
findByType(Class<T> type)
          查找Bean
 

方法详细信息

findByType

<T> List<T> findByType(Class<T> type)
查找Bean

参数:
type - 类型
返回:
可找到的Bean的实例列表


Copyright © 2015–2016 neoremind. All rights reserved.