public class ApplicationContextHolder
extends java.lang.Object
implements org.springframework.context.ApplicationContextAware
构造器和说明 |
---|
ApplicationContextHolder() |
限定符和类型 | 方法和说明 |
---|---|
static void |
cleanHolder() |
static org.springframework.context.ApplicationContext |
getApplicationContext() |
static java.lang.Object |
getBean(java.lang.String beanName) |
void |
setApplicationContext(org.springframework.context.ApplicationContext context) |
public void setApplicationContext(org.springframework.context.ApplicationContext context) throws org.springframework.beans.BeansException
setApplicationContext
在接口中 org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
public static org.springframework.context.ApplicationContext getApplicationContext()
public static java.lang.Object getBean(java.lang.String beanName)
public static void cleanHolder()