Example usage for Java org.springframework.context.support GenericXmlApplicationContext fields, constructors, methods, implement or subclass
The text is from its open source code.
GenericXmlApplicationContext() Create a new GenericXmlApplicationContext that needs to be #load loaded and then manually #refresh refreshed . | |
GenericXmlApplicationContext(Resource... resources) Create a new GenericXmlApplicationContext, loading bean definitions from the given resources and automatically refreshing the context. | |
GenericXmlApplicationContext(String... resourceLocations) Create a new GenericXmlApplicationContext, loading bean definitions from the given resource locations and automatically refreshing the context. | |
GenericXmlApplicationContext(Class> relativeClass, String... resourceNames) Create a new GenericXmlApplicationContext, loading bean definitions from the given resource locations and automatically refreshing the 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). |
String[] | getAliases(String name) |
Object | getBean(String name) |
T | getBean(String name, Class |
Map | getBeansOfType(@Nullable Class |
Map | getBeansOfType(@Nullable Class |
ConfigurableEnvironment | getEnvironment() Return the Environment for this application context in configurable form, allowing for further customization. |
String | getMessage(String code, @Nullable Object[] args, Locale locale) |
void | load(Resource... resources) Load bean definitions from the given XML resources. |
void | load(String... resourceLocations) Load bean definitions from the given XML resources. |
void | load(Class> relativeClass, String... resourceNames) Load bean definitions from the given XML resources. |
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 | setEnvironment(ConfigurableEnvironment environment) Delegates the given environment to underlying XmlBeanDefinitionReader . |
void | setParent(@Nullable ApplicationContext parent) Set the parent of this application context, also setting the parent of the internal BeanFactory accordingly. |
void | setValidating(boolean validating) Set whether to use XML validation. |
void | start() |