Java org.springframework.context.support GenericXmlApplicationContext fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.context.support GenericXmlApplicationContext fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.context.support GenericXmlApplicationContext.

The text is from its open source code.

Subclass

org.springframework.context.support.GenericXmlApplicationContext has subclasses.
Click this link to see all its subclasses.

Constructor

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.

Method

voidaddBeanFactoryPostProcessor(BeanFactoryPostProcessor postProcessor)
voidclose()
Close this application context, destroying all beans in its bean factory.
voiddestroy()
Callback for destruction of this instance, originally attached to a DisposableBean implementation (not anymore in 5.0).
String[]getAliases(String name)
ObjectgetBean(String name)
TgetBean(String name, Class requiredType)
MapgetBeansOfType(@Nullable Class type, boolean includeNonSingletons, boolean allowEagerInit)
MapgetBeansOfType(@Nullable Class type)
ConfigurableEnvironmentgetEnvironment()
Return the Environment for this application context in configurable form, allowing for further customization.
StringgetMessage(String code, @Nullable Object[] args, Locale locale)
voidload(Resource... resources)
Load bean definitions from the given XML resources.
voidload(String... resourceLocations)
Load bean definitions from the given XML resources.
voidload(Class relativeClass, String... resourceNames)
Load bean definitions from the given XML resources.
voidrefresh()
voidregisterShutdownHook()
Register a shutdown hook with the JVM runtime, closing this context on JVM shutdown unless it has already been closed at that time.
voidsetEnvironment(ConfigurableEnvironment environment)
Delegates the given environment to underlying XmlBeanDefinitionReader .
voidsetParent(@Nullable ApplicationContext parent)
Set the parent of this application context, also setting the parent of the internal BeanFactory accordingly.
voidsetValidating(boolean validating)
Set whether to use XML validation.
voidstart()