Example usage for Java org.springframework.web.context.support GenericWebApplicationContext fields, constructors, methods, implement or subclass
The text is from its open source code.
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. |
T | getBean(String name, Class |
Object | getBean(String name) |
ConfigurableListableBeanFactory | getBeanFactory() Return the single internal BeanFactory held by this context (as ConfigurableListableBeanFactory). |
DefaultListableBeanFactory | getDefaultListableBeanFactory() Return the underlying bean factory of this context, available for registering bean definitions. |
ConfigurableEnvironment | getEnvironment() Return the Environment for this application context in configurable form, allowing for further customization. |
ApplicationContext | getParent() Return the parent context, or null if there is no parent (that is, this context is the root of the context hierarchy). |
Resource | getResource(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. |
ServletContext | getServletContext() |
void | refresh() |
void | registerBeanDefinition(String beanName, BeanDefinition beanDefinition) |
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 | setClassLoader(@Nullable ClassLoader classLoader) |
void | setDisplayName(String displayName) Set a friendly name for this context. |
void | setId(String id) Set the unique id of this application context. |
void | setParent(@Nullable ApplicationContext parent) Set the parent of this application context, also setting the parent of the internal BeanFactory accordingly. |
void | setServletContext(@Nullable ServletContext servletContext) Set the ServletContext that this WebApplicationContext runs in. |