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

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

Introduction

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

The text is from its open source code.

Subclass

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

Constructor

ClassPathXmlApplicationContext(ApplicationContext parent)
Create a new ClassPathXmlApplicationContext for bean-style configuration.
ClassPathXmlApplicationContext(String configLocation)
Create a new ClassPathXmlApplicationContext, loading the definitions from the given XML file and automatically refreshing the context.
ClassPathXmlApplicationContext(String... configLocations)
Create a new ClassPathXmlApplicationContext, loading the definitions from the given XML files and automatically refreshing the context.
ClassPathXmlApplicationContext(String[] configLocations, @Nullable ApplicationContext parent)
Create a new ClassPathXmlApplicationContext with the given parent, loading the definitions from the given XML files and automatically refreshing the context.
ClassPathXmlApplicationContext(String[] configLocations, boolean refresh)
Create a new ClassPathXmlApplicationContext, loading the definitions from the given XML files.
ClassPathXmlApplicationContext(String path, Class clazz)
Create a new ClassPathXmlApplicationContext, loading the definitions from the given XML file and automatically refreshing the context.
ClassPathXmlApplicationContext(String[] paths, Class clazz)
Create a new ClassPathXmlApplicationContext, loading the definitions from the given XML files and automatically refreshing the context.
ClassPathXmlApplicationContext()
Create a new ClassPathXmlApplicationContext for bean-style configuration.

Method

voidaddApplicationListener(ApplicationListener listener)
voidaddBeanFactoryPostProcessor(BeanFactoryPostProcessor postProcessor)
voidclose()
Close this application context, destroying all beans in its bean factory.
booleancontainsBean(String name)
voiddestroy()
Callback for destruction of this instance, originally attached to a DisposableBean implementation (not anymore in 5.0).
AutowireCapableBeanFactorygetAutowireCapableBeanFactory()
Return this context's internal bean factory as AutowireCapableBeanFactory, if already available.
TgetBean(String name, Class requiredType)
ObjectgetBean(String name)
intgetBeanDefinitionCount()
String[]getBeanDefinitionNames()
ConfigurableListableBeanFactorygetBeanFactory()
String[]getBeanNamesForType(ResolvableType type)
String[]getBeanNamesForType(ResolvableType type, boolean includeNonSingletons, boolean allowEagerInit)
MapgetBeansOfType(@Nullable Class type)
MapgetBeansOfType(@Nullable Class type, boolean includeNonSingletons, boolean allowEagerInit)
ClassLoadergetClassLoader()
Return the ClassLoader to load class path resources with.
StringgetDisplayName()
Return a friendly name for this context.
ConfigurableEnvironmentgetEnvironment()
Return the Environment for this application context in configurable form, allowing for further customization.
StringgetMessage(String code, @Nullable Object[] args, Locale locale)
longgetStartupDate()
Return the timestamp (ms) when this context was first loaded.
booleanisActive()
booleanisSingleton(String name)
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.
voidsetAllowBeanDefinitionOverriding(boolean allowBeanDefinitionOverriding)
Set whether it should be allowed to override bean definitions by registering a different definition with the same name, automatically replacing the former.
voidsetClassLoader(@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.
voidsetConfigLocation(String location)
Set the config locations for this application context in init-param style, i.e.
voidsetConfigLocations(@Nullable String... locations)
Set the config locations for this application context.
voidsetDisplayName(String displayName)
Set a friendly name for this context.
voidsetId(String id)
voidsetParent(@Nullable ApplicationContext parent)
Set the parent of this application context.
voidsetValidating(boolean validating)
Set whether to use XML validation.
voidstart()
voidstop()