Example usage for Java org.springframework.web.context.support AnnotationConfigWebApplicationContext fields, constructors, methods, implement or subclass
The text is from its open source code.
void | addApplicationListener(ApplicationListener> listener) |
void | addBeanFactoryPostProcessor(BeanFactoryPostProcessor postProcessor) |
void | close() Close this application context, destroying all beans in its bean factory. |
Object | getBean(String name) |
ConfigurableListableBeanFactory | getBeanFactory() |
List | getBeanFactoryPostProcessors() Return the list of BeanFactoryPostProcessors that will get applied to the internal BeanFactory. |
Map | getBeansOfType(@Nullable Class |
Map | getBeansWithAnnotation(Class extends Annotation> annotationType) |
Class> | getClass() Returns the runtime class of this Object . |
ConfigurableEnvironment | getEnvironment() Return the Environment for this application context in configurable form, allowing for further customization. |
boolean | isActive() |
void | refresh() |
void | register(Class>... annotatedClasses) Register one or more annotated classes to be processed. |
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 | scan(String... basePackages) Perform a scan within the specified base packages. |
void | setConfigLocation(String location) Set the config locations for this application context in init-param style, i.e. |
void | setConfigLocations(@Nullable String... locations) Set the config locations for this application context. |
void | setDisplayName(String displayName) Set a friendly name for this context. |
void | setEnvironment(ConfigurableEnvironment environment) Set the Environment for this application context. |
void | setNamespace(@Nullable String namespace) |
void | setParent(@Nullable ApplicationContext parent) Set the parent of this application context. |
void | setServletConfig(@Nullable ServletConfig servletConfig) |
void | setServletContext(@Nullable ServletContext servletContext) |
void | start() |