Example usage for Java org.springframework.context.support AbstractXmlApplicationContext fields, constructors, methods, implement or subclass
The text is from its open source code.
AbstractXmlApplicationContext(@Nullable ApplicationContext parent) Create a new AbstractXmlApplicationContext with the given parent context. |
void | addBeanFactoryPostProcessor(BeanFactoryPostProcessor postProcessor) |
void | close() Close this application context, destroying all beans in its bean factory. |
void | destroy() Callback for destruction of this instance, originally attached to a DisposableBean implementation (not anymore in 5.0). |
Object | getBean(String name) |
ConfigurableListableBeanFactory | getBeanFactory() |
Map | getBeansOfType(@Nullable Class |
ConfigurableEnvironment | getEnvironment() Return the Environment for this application context in configurable form, allowing for further customization. |
void | refresh() |
void | registerShutdownHook() Register a shutdown hook with the JVM runtime, closing this context on JVM shutdown unless it has already been closed at that time. |
void | setClassLoader(@Nullable ClassLoader classLoader) Specify the ClassLoader to load class path resources with, or null for using the thread context class loader at the time of actual resource access. |
void | setConfigLocation(String location) Set the config locations for this application context in init-param style, i.e. |
void | setParent(@Nullable ApplicationContext parent) Set the parent of this application context. |
void | start() |
void | stop() |
void | wait(long timeoutMillis) Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed. |