public class ServletContextConfigurationCacheProvider extends HttpConfigurationCacheProvider
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>
| Constructor and Description |
|---|
ServletContextConfigurationCacheProvider() |
| Modifier and Type | Method and Description |
|---|---|
Configuration |
getConfiguration(javax.servlet.ServletContext context) |
int |
priority() |
void |
setConfiguration(javax.servlet.ServletContext context,
Configuration configuration) |
handlespublic ServletContextConfigurationCacheProvider()
public Configuration getConfiguration(javax.servlet.ServletContext context)
public void setConfiguration(javax.servlet.ServletContext context,
Configuration configuration)
public int priority()
Copyright © 2018 OCPsoft. All rights reserved.