Class ServletContextConfigurationCacheProvider

java.lang.Object
org.ocpsoft.rewrite.servlet.config.HttpConfigurationCacheProvider
org.ocpsoft.rewrite.servlet.impl.ServletContextConfigurationCacheProvider
All Implemented Interfaces:
org.ocpsoft.common.pattern.Specialized<Object>, org.ocpsoft.common.pattern.Weighted, ConfigurationCacheProvider<ServletContext>

public class ServletContextConfigurationCacheProvider extends HttpConfigurationCacheProvider
Default implementation of ConfigurationCacheProvider that uses the ServletContext as an application-scoped storage medium. By default, the Configuration will be loaded once upon application startup, and never again.

To disable the default caching mechanism, and enable Configuration reloading on each request, add the following servlet context init parameter to web.xml:

 <context-param>
   <param-name>org.ocpsoft.rewrite.config.CONFIG_RELOADING</param-name>
   <param-value>true</param-value>
 </context-param>
 
Author:
Lincoln Baxter, III
  • Constructor Details

    • ServletContextConfigurationCacheProvider

      public ServletContextConfigurationCacheProvider()
  • Method Details