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

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

Introduction

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

The text is from its open source code.

Subclass

org.springframework.web.context.support.GenericWebApplicationContext has subclasses.
Click this link to see all its subclasses.

Constructor

GenericWebApplicationContext()
Create a new GenericWebApplicationContext.
GenericWebApplicationContext(ServletContext servletContext)
Create a new GenericWebApplicationContext for the given ServletContext.
GenericWebApplicationContext(DefaultListableBeanFactory beanFactory)
Create a new GenericWebApplicationContext with the given DefaultListableBeanFactory.

Method

TgetBean(String name, Class requiredType)
ObjectgetBean(String name)
ConfigurableListableBeanFactorygetBeanFactory()
Return the single internal BeanFactory held by this context (as ConfigurableListableBeanFactory).
DefaultListableBeanFactorygetDefaultListableBeanFactory()
Return the underlying bean factory of this context, available for registering bean definitions.
ConfigurableEnvironmentgetEnvironment()
Return the Environment for this application context in configurable form, allowing for further customization.
ApplicationContextgetParent()
Return the parent context, or null if there is no parent (that is, this context is the root of the context hierarchy).
ResourcegetResource(String location)
This implementation delegates to this context's ResourceLoader if set, falling back to the default superclass behavior else.
Resource[]getResources(String locationPattern)
This implementation delegates to this context's ResourceLoader if it implements the ResourcePatternResolver interface, falling back to the default superclass behavior else.
ServletContextgetServletContext()
voidrefresh()
voidregisterBeanDefinition(String beanName, BeanDefinition beanDefinition)
voidregisterShutdownHook()
Register a shutdown hook with the JVM runtime, closing this context on JVM shutdown unless it has already been closed at that time.
voidsetClassLoader(@Nullable ClassLoader classLoader)
voidsetDisplayName(String displayName)
Set a friendly name for this context.
voidsetId(String id)
Set the unique id of this application context.
voidsetParent(@Nullable ApplicationContext parent)
Set the parent of this application context, also setting the parent of the internal BeanFactory accordingly.
voidsetServletContext(@Nullable ServletContext servletContext)
Set the ServletContext that this WebApplicationContext runs in.