Example usage for Java org.springframework.context ConfigurableApplicationContext fields, constructors, methods, implement or subclass
The text is from its open source code.
String | CONFIG_LOCATION_DELIMITERS Any number of these characters are considered delimiters between multiple context config paths in a single String value. |
String | CONVERSION_SERVICE_BEAN_NAME Name of the ConversionService bean in the factory. |
String | SYSTEM_PROPERTIES_BEAN_NAME Name of the System properties bean in the factory. |
String | SYSTEM_ENVIRONMENT_BEAN_NAME Name of the System environment bean in the factory. |
void | addApplicationListener(ApplicationListener> listener) Add a new ApplicationListener that will be notified on context events such as context refresh and context shutdown. |
void | addBeanFactoryPostProcessor(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. |
void | close() Close this application context, releasing all resources and locks that the implementation might hold. |
AutowireCapableBeanFactory | getAutowireCapableBeanFactory() Expose AutowireCapableBeanFactory functionality for this context. |
Object | getBean(String name) Return an instance, which may be shared or independent, of the specified bean. |
T | getBean(String name, Class Return an instance, which may be shared or independent, of the specified bean. |
int | getBeanDefinitionCount() Return the number of beans defined in the factory. |
String[] | getBeanDefinitionNames() Return the names of all beans defined in this factory. |
ConfigurableListableBeanFactory | getBeanFactory() 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. |
Map | getBeansOfType(@Nullable Class 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. |
Class> | getClass() Returns the runtime class of this Object . |
ClassLoader | getClassLoader() Expose the ClassLoader used by this ResourceLoader. |
String | getDisplayName() Return a friendly name for this context. |
ConfigurableEnvironment | getEnvironment() Return the Environment for this application context in configurable form, allowing for further customization. |
String | getId() Return the unique id of this application context. |
String | getMessage(String code, @Nullable Object[] args, Locale locale) Try to resolve the message. |
ApplicationContext | getParent() Return the parent context, or null if there is no parent and this is the root of the context hierarchy. |
Resource | getResource(String location) Return a Resource handle for the specified resource location. |
long | getStartupDate() Return the timestamp when this context was first loaded. |
Class> | getType(String name) Determine the type of the bean with the given name. |
boolean | isActive() Determine whether this application context is active, that is, whether it has been refreshed at least once and has not been closed yet. |
boolean | isRunning() Check whether this component is currently running. |
void | publishEvent(ApplicationEvent event) Notify all matching listeners registered with this application of an application event. |
void | refresh() Load or refresh the persistent representation of the configuration, which might an XML file, properties file, or relational database schema. |
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) Set the Environment for this application context. |
void | setId(String id) Set the unique id of this application context. |
void | setParent(@Nullable ApplicationContext parent) Set the parent of this application context. |
void | start() Start this component. |
void | stop() Stop this component, typically in a synchronous fashion, such that the component is fully stopped upon return of this method. |
String | toString() Returns a string representation of the object. |