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