org.omnifaces.component.output.cache
Class CacheInitializerListener
java.lang.Object
org.omnifaces.component.output.cache.CacheInitializerListener
- All Implemented Interfaces:
- java.util.EventListener, javax.servlet.ServletContextListener
@WebListener
public class CacheInitializerListener
- extends java.lang.Object
- implements javax.servlet.ServletContextListener
Optional initializer for the Cache
used by the Omnifaces Cache component.
It takes a configuration from web.xml context parameters and used that to set a cache provider and/or configure the
caching provider. If no initialization is done defaults are used.
- Since:
- 1.1
- Author:
- Arjan Tijms
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CACHE_PROVIDER_INIT_PARAM_NAME
public static final java.lang.String CACHE_PROVIDER_INIT_PARAM_NAME
- See Also:
- Constant Field Values
CACHE_INSTALL_BUFFER_FILTER
public static final java.lang.String CACHE_INSTALL_BUFFER_FILTER
- See Also:
- Constant Field Values
CACHE_PROVIDER_SETTING_INIT_PARAM_PREFIX
public static final java.lang.String CACHE_PROVIDER_SETTING_INIT_PARAM_PREFIX
- See Also:
- Constant Field Values
CacheInitializerListener
public CacheInitializerListener()
contextInitialized
public void contextInitialized(javax.servlet.ServletContextEvent sce)
- Specified by:
contextInitialized
in interface javax.servlet.ServletContextListener
contextDestroyed
public void contextDestroyed(javax.servlet.ServletContextEvent sce)
- Specified by:
contextDestroyed
in interface javax.servlet.ServletContextListener