@Service
public class ApplicationContextReference
extends java.lang.Object
implements org.springframework.context.ApplicationContextAware
Constructor and Description |
---|
ApplicationContextReference() |
Modifier and Type | Method and Description |
---|---|
org.springframework.context.ApplicationContext |
getApplicationContext() |
static <T> T |
getBean(java.lang.Class<T> beanClass) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
public org.springframework.context.ApplicationContext getApplicationContext()
public static <T> T getBean(java.lang.Class<T> beanClass)