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

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

Introduction

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

The text is from its open source code.

Constructor

Method

voidaddApplicationListener(ApplicationListener listener)
voidaddBeanFactoryPostProcessor(BeanFactoryPostProcessor postProcessor)
voidclose()
Close this application context, destroying all beans in its bean factory.
ObjectgetBean(String name)
ConfigurableListableBeanFactorygetBeanFactory()
ListgetBeanFactoryPostProcessors()
Return the list of BeanFactoryPostProcessors that will get applied to the internal BeanFactory.
MapgetBeansOfType(@Nullable Class type)
MapgetBeansWithAnnotation(Class annotationType)
ClassgetClass()
Returns the runtime class of this Object .
ConfigurableEnvironmentgetEnvironment()
Return the Environment for this application context in configurable form, allowing for further customization.
booleanisActive()
voidrefresh()
voidregister(Class... annotatedClasses)
Register one or more annotated classes to be processed.
voidregisterShutdownHook()
Register a shutdown hook with the JVM runtime, closing this context on JVM shutdown unless it has already been closed at that time.
voidscan(String... basePackages)
Perform a scan within the specified base packages.
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.
voidsetEnvironment(ConfigurableEnvironment environment)
Set the Environment for this application context.
voidsetNamespace(@Nullable String namespace)
voidsetParent(@Nullable ApplicationContext parent)
Set the parent of this application context.
voidsetServletConfig(@Nullable ServletConfig servletConfig)
voidsetServletContext(@Nullable ServletContext servletContext)
voidstart()