类 SpringContextUtil
java.lang.Object
cn.airfei.aircore.core.utils.SpringContextUtil
- 所有已实现的接口:
org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
@Component
public class SpringContextUtil
extends Object
implements org.springframework.context.ApplicationContextAware
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static org.springframework.context.ApplicationContextstatic <T> Tstatic Objectstatic <T> TvoidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)
-
构造器详细资料
-
SpringContextUtil
public SpringContextUtil()
-
-
方法详细资料
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - 指定者:
setApplicationContext在接口中org.springframework.context.ApplicationContextAware- 抛出:
org.springframework.beans.BeansException
-
getApplicationContext
public static org.springframework.context.ApplicationContext getApplicationContext() -
getBean
-
getBean
-
getBean
-