Example usage for Java org.springframework.context.support StaticApplicationContext fields, constructors, methods, implement or subclass
The text is from its open source code.
StaticApplicationContext() Create a new StaticApplicationContext. | |
StaticApplicationContext(@Nullable ApplicationContext parent) Create a new StaticApplicationContext with the given parent. |
void | addApplicationListener(ApplicationListener> listener) |
void | addBeanFactoryPostProcessor(BeanFactoryPostProcessor postProcessor) |
void | close() Close this application context, destroying all beans in its bean factory. |
boolean | containsBean(String name) |
AutowireCapableBeanFactory | getAutowireCapableBeanFactory() |
Object | getBean(String name) |
T | getBean(String name, Class |
ConfigurableListableBeanFactory | getBeanFactory() Return the single internal BeanFactory held by this context (as ConfigurableListableBeanFactory). |
void | publishEvent(ApplicationEvent event) Publish the given event to all listeners. |
void | refresh() |
void | registerBeanDefinition(String beanName, BeanDefinition beanDefinition) |
void | registerPrototype(String name, Class> clazz) Register a prototype bean with the underlying bean factory. |
void | registerSingleton(String name, Class> clazz) Register a singleton bean with the underlying bean factory. |
void | setParent(@Nullable ApplicationContext parent) Set the parent of this application context, also setting the parent of the internal BeanFactory accordingly. |
void | stop() |