Package org.ocpsoft.rewrite.servlet.impl
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<jakarta.servlet.ServletContext>
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetConfiguration(jakarta.servlet.ServletContext context) intpriority()voidsetConfiguration(jakarta.servlet.ServletContext context, Configuration configuration) Methods inherited from class org.ocpsoft.rewrite.servlet.config.HttpConfigurationCacheProvider
handles
-
Constructor Details
-
ServletContextConfigurationCacheProvider
public ServletContextConfigurationCacheProvider()
-
-
Method Details
-
getConfiguration
-
setConfiguration
-
priority
public int priority()
-