Example usage for Java org.springframework.web.context WebApplicationContext fields, constructors, methods, implement or subclass
The text is from its open source code.
String | ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE Context attribute to bind root WebApplicationContext to on successful startup. |
String | SCOPE_REQUEST Scope identifier for request scope: "request". |
String | SCOPE_SESSION Scope identifier for session scope: "session". |
String | SCOPE_APPLICATION Scope identifier for the global web application scope: "application". |
boolean | containsBean(String name) Does this bean factory contain a bean definition or externally registered singleton instance with the given name? |
String[] | getAliases(String name) Return the aliases for the given bean name, if any. |
String | getApplicationName() Return a name for the deployed application that this context belongs to. |
AutowireCapableBeanFactory | getAutowireCapableBeanFactory() Expose AutowireCapableBeanFactory functionality for this context. |
Object | getBean(String name) Return an instance, which may be shared or independent, of the specified bean. |
T | getBean(String name, Class Return an instance, which may be shared or independent, of the specified bean. |
String[] | getBeanDefinitionNames() Return the names of all beans defined in this factory. |
String[] | getBeanNamesForType(ResolvableType type, boolean includeNonSingletons, boolean allowEagerInit) Return the names of beans matching the given type (including subclasses), judging from either bean definitions or the value of getObjectType in the case of FactoryBeans. |
String[] | getBeanNamesForType(ResolvableType type) Return the names of beans matching the given type (including subclasses), judging from either bean definitions or the value of getObjectType in the case of FactoryBeans. |
Map | getBeansOfType(@Nullable Class 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. |
Map | getBeansOfType(@Nullable Class 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. |
Class> | getClass() Returns the runtime class of this Object . |
ClassLoader | getClassLoader() Expose the ClassLoader used by this ResourceLoader. |
String | getDisplayName() Return a friendly name for this context. |
Environment | getEnvironment() Return the Environment associated with this component. |
String | getId() Return the unique id of this application context. |
String | getMessage(String code, @Nullable Object[] args, @Nullable String defaultMessage, Locale locale) Try to resolve the message. |
String | getMessage(String code, @Nullable Object[] args, Locale locale) Try to resolve the message. |
String | getMessage(MessageSourceResolvable resolvable, Locale locale) Try to resolve the message using all the attributes contained within the MessageSourceResolvable argument that was passed in. |
ApplicationContext | getParent() Return the parent context, or null if there is no parent and this is the root of the context hierarchy. |
BeanFactory | getParentBeanFactory() Return the parent bean factory, or null if there is none. |
Resource | getResource(String location) Return a Resource handle for the specified resource location. |
Resource[] | getResources(String locationPattern) Resolve the given location pattern into Resource objects. |
ServletContext | getServletContext() Return the standard Servlet API ServletContext for this application. |
Class> | getType(String name) Determine the type of the bean with the given name. |
void | publishEvent(ApplicationEvent event) Notify all matching listeners registered with this application of an application event. |