public class ApplicationContextProvider extends Object implements ApplicationContextAware
Constructor and Description |
---|
ApplicationContextProvider() |
Modifier and Type | Method and Description |
---|---|
static ConfigurableApplicationContext |
getApplicationContext() |
static DefaultListableBeanFactory |
getBeanFactory() |
void |
setApplicationContext(ApplicationContext ctx)
Wiring the ApplicationContext into a static method.
|
static void |
setBeanFactory(DefaultListableBeanFactory beanFactory) |
public static ConfigurableApplicationContext getApplicationContext()
public static DefaultListableBeanFactory getBeanFactory()
public static void setBeanFactory(DefaultListableBeanFactory beanFactory)
public void setApplicationContext(ApplicationContext ctx)
setApplicationContext
in interface ApplicationContextAware
ctx
- Spring application contextCopyright © 2010–2023 The Apache Software Foundation. All rights reserved.