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

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

Introduction

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

The text is from its open source code.

Implementation

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

Field

StringAPPLICATION_CONTEXT_ID_PREFIX
Prefix for ApplicationContext ids that refer to context path and/or servlet name.

Method

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.
ObjectgetBean(String name)
Return an instance, which may be shared or independent, of the specified bean.
ConfigurableListableBeanFactorygetBeanFactory()
Return the internal bean factory of this application context.
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.
String[]getConfigLocations()
Return the config locations for this web application context, or null if none specified.
EnvironmentgetEnvironment()
Return the Environment associated with this component.
StringgetId()
Return the unique id of this application context.
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.
Resource[]getResources(String locationPattern)
Resolve the given location pattern into Resource objects.
ServletConfiggetServletConfig()
Return the ServletConfig for this web application context, if any.
ServletContextgetServletContext()
Return the standard Servlet API ServletContext for this application.
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.
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.
voidsetConfigLocation(String configLocation)
Set the config locations for this web application context in init-param style, i.e.
voidsetConfigLocations(String... configLocations)
Set the config locations for this web application context.
voidsetEnvironment(ConfigurableEnvironment environment)
Set the Environment for this application context.
voidsetId(String id)
Set the unique id of this application context.
voidsetNamespace(@Nullable String namespace)
Set the namespace for this web application context, to be used for building a default context config location.
voidsetParent(@Nullable ApplicationContext parent)
Set the parent of this application context.
voidsetServletConfig(@Nullable ServletConfig servletConfig)
Set the ServletConfig for this web application context.
voidsetServletContext(@Nullable ServletContext servletContext)
Set the ServletContext for this web 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.