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

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

Introduction

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

The text is from its open source code.

Implementation

org.springframework.context.ConfigurableApplicationContext has the following implementations.
Click this link to see all its implementation.

Field

StringCONFIG_LOCATION_DELIMITERS
Any number of these characters are considered delimiters between multiple context config paths in a single String value.
StringCONVERSION_SERVICE_BEAN_NAME
Name of the ConversionService bean in the factory.
StringSYSTEM_PROPERTIES_BEAN_NAME
Name of the System properties bean in the factory.
StringSYSTEM_ENVIRONMENT_BEAN_NAME
Name of the System environment bean in the factory.

Method

voidaddApplicationListener(ApplicationListener listener)
Add a new ApplicationListener that will be notified on context events such as context refresh and context shutdown.
voidaddBeanFactoryPostProcessor(BeanFactoryPostProcessor postProcessor)
Add a new BeanFactoryPostProcessor that will get applied to the internal bean factory of this application context on refresh, before any of the bean definitions get evaluated.
voidclose()
Close this application context, releasing all resources and locks that the implementation might hold.
AutowireCapableBeanFactorygetAutowireCapableBeanFactory()
Expose AutowireCapableBeanFactory functionality for this context.
ObjectgetBean(String name)
Return an instance, which may be shared or independent, of the specified bean.
TgetBean(String name, Class requiredType)
Return an instance, which may be shared or independent, of the specified bean.
intgetBeanDefinitionCount()
Return the number of beans defined in the factory.
String[]getBeanDefinitionNames()
Return the names of all beans defined in this factory.
ConfigurableListableBeanFactorygetBeanFactory()
Return the internal bean factory of this application context.
String[]getBeanNamesForType(ResolvableType type)
Return the names of beans matching the given type (including subclasses), judging from either bean definitions or the value of getObjectType in the case of FactoryBeans.
MapgetBeansOfType(@Nullable Class type)
Return the bean instances that match the given object type (including subclasses), judging from either bean definitions or the value of getObjectType in the case of FactoryBeans.
ClassgetClass()
Returns the runtime class of this Object .
ClassLoadergetClassLoader()
Expose the ClassLoader used by this ResourceLoader.
StringgetDisplayName()
Return a friendly name for this context.
ConfigurableEnvironmentgetEnvironment()
Return the Environment for this application context in configurable form, allowing for further customization.
StringgetId()
Return the unique id of this application context.
StringgetMessage(String code, @Nullable Object[] args, Locale locale)
Try to resolve the message.
ApplicationContextgetParent()
Return the parent context, or null if there is no parent and this is the root of the context hierarchy.
ResourcegetResource(String location)
Return a Resource handle for the specified resource location.
longgetStartupDate()
Return the timestamp when this context was first loaded.
ClassgetType(String name)
Determine the type of the bean with the given name.
booleanisActive()
Determine whether this application context is active, that is, whether it has been refreshed at least once and has not been closed yet.
booleanisRunning()
Check whether this component is currently running.
voidpublishEvent(ApplicationEvent event)
Notify all matching listeners registered with this application of an application event.
voidrefresh()
Load or refresh the persistent representation of the configuration, which might an XML file, properties file, or relational database schema.
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)
Set the Environment for this application context.
voidsetId(String id)
Set the unique id of this application context.
voidsetParent(@Nullable ApplicationContext parent)
Set the parent of this application context.
voidstart()
Start this component.
voidstop()
Stop this component, typically in a synchronous fashion, such that the component is fully stopped upon return of this method.
StringtoString()
Returns a string representation of the object.