com.baidu.unbiz.fluentvalidator.registry.impl
类 SpringApplicationContextRegistry
java.lang.Object
com.baidu.unbiz.fluentvalidator.registry.impl.SpringApplicationContextRegistry
- 所有已实现的接口:
- Registry, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware
public class SpringApplicationContextRegistry
- extends Object
- implements Registry, org.springframework.context.ApplicationContextAware
Registry的一种利用SpringIoC容器查找bean的实现
- 作者:
- zhangxu
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpringApplicationContextRegistry
public SpringApplicationContextRegistry()
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
- 指定者:
- 接口
org.springframework.context.ApplicationContextAware 中的 setApplicationContext
- 抛出:
org.springframework.beans.BeansException
findByType
public <T> List<T> findByType(Class<T> type)
- 指定者:
- 接口
Registry 中的 findByType
findByTypeWithName
public <T> Map<String,T> findByTypeWithName(Class<T> type)
- 调用Spring工具类获取bean
- 参数:
type - 类类型
- 返回:
- 容器托管的bean字典
Copyright © 2015–2017 neoremind. All rights reserved.