Example usage for Java org.springframework.context.support AbstractApplicationContext fields, constructors, methods, implement or subclass
The text is from its open source code.
String | MESSAGE_SOURCE_BEAN_NAME Name of the MessageSource bean in the factory. |
String | APPLICATION_EVENT_MULTICASTER_BEAN_NAME Name of the ApplicationEventMulticaster bean in the factory. |
AbstractApplicationContext() Create a new AbstractApplicationContext with no parent. |
void | addApplicationListener(ApplicationListener> listener) |
void | addBeanFactoryPostProcessor(BeanFactoryPostProcessor postProcessor) |
void | close() Close this application context, destroying all beans in its bean factory. |
boolean | containsBean(String name) |
void | destroy() Callback for destruction of this instance, originally attached to a DisposableBean implementation (not anymore in 5.0). |
Object | getBean(String name) |
T | getBean(Class |
T | getBean(String name, Class |
Object | getBean(String name, Object... args) |
T | getBean(Class |
String[] | getBeanDefinitionNames() |
ConfigurableListableBeanFactory | getBeanFactory() Subclasses must return their internal bean factory here. |
String[] | getBeanNamesForType(ResolvableType type) |
String[] | getBeanNamesForType(@Nullable Class> type) |
Map | getBeansOfType(@Nullable Class |
ClassLoader | getClassLoader() Return the ClassLoader to load class path resources with. |
Resource | getResource(String location) |
boolean | isActive() |
boolean | isRunning() |
void | publishEvent(ApplicationEvent event) Publish the given event to all listeners. |
void | publishEvent(Object event) Publish the given event to all listeners. |
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 | setParent(@Nullable ApplicationContext parent) Set the parent of this application context. |
void | start() |
void | stop() |