Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep Javadoc index of package

Package Samples: Contains the application context subinterface for web applications, and the ContextLoaderListener that bootstraps the root web application context.  


AbstractRefreshableWebApplicationContext: AbstractRefreshableApplicationContext subclass that implements the ConfigurableWebApplicationContext interface for web environments. Pre-implements a "configLocation" property, to be populated through the ConfigurableWebApplicationContext interface on web application startup. This class is as easy to subclass as AbstractRefreshableApplicationContext: All you need to implements is the loadBeanDefinitions method; see the superclass javadoc for details. Note that implementations are supposed to load bean definitions from the files specified by the locations returned by the getConfigLocations method. ...
XmlWebApplicationContext: WebApplicationContext implementation that takes configuration from an XML document, understood by an XmlBeanDefinitionReader. This is essentially the equivalent of AbstractXmlApplicationContext and its subclasses for a web environment. By default, the configuration will be taken from "/WEB-INF/applicationContext.xml" for the root context, and "/WEB-INF/test-servlet.xml" for a context with the namespace "test-servlet" (like for a DispatcherServlet instance with the servlet-name "test"). The config location defaults can be overridden via the "contextConfigLocation" context param of ContextLoader ...
ServletContextPropertyPlaceholderConfigurer: Subclass of PropertyPlaceholderConfigurer that resolves placeholders as ServletContext init parameters (that is, web.xml context-param entries). Can be combined with "locations" and/or "properties" values in addition to web.xml context-params. Alternatively, can be defined without local properties, to resolve all placeholders as web.xml context-params (or JVM system properties). If a placeholder could not be resolved against the provided local properties within the application, this configurer will fall back to ServletContext parameters. Can also be configured to let ServletContext init parameters ...
ServletContextAttributeExporter: Exporter that takes Spring-defined objects and exposes them as ServletContext attributes. Usually, bean references will be used to export Spring-defined beans as ServletContext attributes. Useful to make Spring-defined beans available to code that is not aware of Spring at all, but rather just of the Servlet API. Client code can then use plain ServletContext attribute lookups to access those objects, despite them being defined in a Spring application context. Alternatively, consider using the WebApplicationContextUtils class to access Spring-defined beans via the WebApplicationContext interface. ...
ServletContextFactoryBean: Simple FactoryBean that exposes the ServletContext for bean references. Can be used as alternative to implementing ServletContextAware, allowing to pass in the ServletContext to a constructor argument or any custom bean property. Note that there's a special FactoryBean for exposing a specific ServletContext attribute, named ServletContextAttributeFactoryBean. So if all you need from the ServletContext is access to a specific attribute, ServletContextAttributeFactoryBean allows you to expose a constructor argument or bean property of the attribute type, which is a preferable to a dependency on the ...
ServletContextResourcePatternResolver: ServletContext-aware subclass of PathMatchingResourcePatternResolver, able to find matching resources below the web application root directory via Servlet 2.3's ServletContext.getResourcePaths . Falls back to the superclass' file system checking for other resources. The advantage of using ServletContext.getResourcePaths to find matching files is that it will work in a WAR file which has not been expanded too. For Servlet containers that do not support Servlet 2.3 or above, this resolver will always fall back to file system checking, which requires an expanded WAR file.
ServletContextAttributeFactoryBean: FactoryBean that fetches a specific, existing ServletContext attribute. Exposes that ServletContext attribute when used as bean reference, effectively making it available as named Spring bean instance. Intended to link in ServletContext attributes that exist before the startup of the Spring application context. Typically, such attributes will have been put there by third-party web frameworks. In a purely Spring-based web application, no such linking in of ServletContext attrutes will be necessary.
WebApplicationContextUtils: Convenience methods to retrieve the root WebApplicationContext for a given ServletContext. This is e.g. useful for accessing a Spring context from within custom web views or Struts actions. Note that there are more convenient ways of accessing the root context for many web frameworks, either part of Spring or available as external library. This helper class is just the most generic way to access the root context.
ServletContextAwareProcessor: BeanPostProcessor implementation that passes the ServletContext to beans that implement the ApplicationContextAware or ResourceLoaderAware interfaces. If both are implemented, the latter is satisfied first. Web application contexts will automatically register this with their underlying bean factory. Applications do not use this directly.
ServletContextResource: Resource implementation for ServletContext resources, interpreting relative paths within the web application root. Always supports stream access, but only allows access when the web application archive is expanded. Always supports resolution as URL.
StaticWebApplicationContext: Static WebApplicationContext implementation for testing. Not for use in production applications. In addition to the special beans detected by AbstractApplicationContext, this class detects a ThemeSource bean in the context, with the name "themeSource".
RequestHandledEvent: Event raised when a request is handled within a WebApplicationContext. Supported by Spring's own FrameworkServlet, but can also be raised by any other web component.
WebApplicationObjectSupport: Convenient superclass for application objects running in a WebApplicationContext. Provides getWebApplicationContext, getServletContext, and getTempDir methods.
ServletContextResourceLoader: ResourceLoader implementation that resolves paths as ServletContext resources, for use outside a WebApplicationContext.
PerformanceMonitorListener: Listener that logs the response times of web requests. To be registered in a WebApplicationContext.

Home | Contact Us | Privacy Policy | Terms of Service