类 SpringContextUtil
java.lang.Object
cn.bbwres.biscuit.utils.SpringContextUtil
- 所有已实现的接口:
org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
public class SpringContextUtil
extends Object
implements org.springframework.context.ApplicationContextAware
Spring上下文工具类
- 作者:
- zhanglinfeng
-
构造器概要
构造器 -
方法概要
-
构造器详细资料
-
SpringContextUtil
public SpringContextUtil()
-
-
方法详细资料
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext context) - 指定者:
setApplicationContext在接口中org.springframework.context.ApplicationContextAware
-
getBean
静态方法:获取Spring管理的Bean- 类型参数:
T-- 参数:
beanClass-- 返回:
-
getBean
通过name,以及Clazz返回指定的Bean- 类型参数:
T-- 参数:
name-clazz-- 返回:
-