public class SpringContextUtils extends Object implements org.springframework.beans.factory.config.BeanFactoryPostProcessor, org.springframework.context.ApplicationContextAware
| Constructor and Description |
|---|
SpringContextUtils() |
| Modifier and Type | Method and Description |
|---|---|
static org.springframework.context.ApplicationContext |
getApplicationContext() |
static <T> T |
getBean(Class<T> clazz) |
static <T> T |
getBean(String name,
Class<T> clazz) |
static org.springframework.beans.factory.ListableBeanFactory |
getBeanFactory() |
static org.springframework.beans.factory.config.ConfigurableListableBeanFactory |
getConfigurableBeanFactory() |
void |
postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
public void postProcessBeanFactory(org.springframework.beans.factory.config.ConfigurableListableBeanFactory beanFactory)
throws org.springframework.beans.BeansException
postProcessBeanFactory in interface org.springframework.beans.factory.config.BeanFactoryPostProcessororg.springframework.beans.BeansExceptionpublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
setApplicationContext in interface org.springframework.context.ApplicationContextAwarepublic static org.springframework.context.ApplicationContext getApplicationContext()
public static org.springframework.beans.factory.ListableBeanFactory getBeanFactory()
public static org.springframework.beans.factory.config.ConfigurableListableBeanFactory getConfigurableBeanFactory()
public static <T> T getBean(Class<T> clazz)
Copyright © 2024. All rights reserved.