@WebListener
public class CacheInitializerListener
extends java.lang.Object
implements javax.servlet.ServletContextListener
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.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CACHE_INSTALL_BUFFER_FILTER |
static java.lang.String |
CACHE_PROVIDER_INIT_PARAM_NAME |
static java.lang.String |
CACHE_PROVIDER_SETTING_INIT_PARAM_PREFIX |
Constructor and Description |
---|
CacheInitializerListener() |
Modifier and Type | Method and Description |
---|---|
void |
contextDestroyed(javax.servlet.ServletContextEvent sce) |
void |
contextInitialized(javax.servlet.ServletContextEvent sce) |
public static final java.lang.String CACHE_PROVIDER_INIT_PARAM_NAME
public static final java.lang.String CACHE_INSTALL_BUFFER_FILTER
public static final java.lang.String CACHE_PROVIDER_SETTING_INIT_PARAM_PREFIX
public void contextInitialized(javax.servlet.ServletContextEvent sce)
contextInitialized
in interface javax.servlet.ServletContextListener
public void contextDestroyed(javax.servlet.ServletContextEvent sce)
contextDestroyed
in interface javax.servlet.ServletContextListener