程序包 cn.valot.common
类 ApplicationContextHolder
java.lang.Object
cn.valot.common.ApplicationContextHolder
- 所有已实现的接口:
org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
@Component
public class ApplicationContextHolder
extends Object
implements org.springframework.context.ApplicationContextAware
Application Context Holder
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static org.springframework.context.ApplicationContextvoidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)
-
构造器详细资料
-
ApplicationContextHolder
public ApplicationContextHolder()
-
-
方法详细资料
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - 指定者:
setApplicationContext在接口中org.springframework.context.ApplicationContextAware- 抛出:
org.springframework.beans.BeansException
-
getContext
public static org.springframework.context.ApplicationContext getContext()
-