Class LuteceCacheParameterHolder

java.lang.Object
fr.paris.lutece.portal.service.cache.LuteceCacheParameterHolder
Type Parameters:
K - the type of keys maintained by this cache
V - the type of mapped values

@ApplicationScoped public class LuteceCacheParameterHolder extends Object
Configuration class for LuteceCache.
  • Constructor Details

    • LuteceCacheParameterHolder

      public LuteceCacheParameterHolder()
  • Method Details

    • getCacheName

      public String getCacheName()
      Gets the name of the cache.
      Returns:
      the name of the cache
    • setCacheName

      public void setCacheName(String cacheName)
      Sets the name of the cache.
      Parameters:
      cacheName - the name of the cache
    • getConfig

      public javax.cache.configuration.Configuration getConfig()
      Gets the configuration of the cache.
      Returns:
      the configuration of the cache
    • setConfig

      public void setConfig(javax.cache.configuration.Configuration<?,?> conf)
      Sets the configuration of the cache.
      Parameters:
      conf - the configuration of the cache
    • isEnable

      public boolean isEnable()
      Gets the value of the `_bEnable` field.
      Returns:
      true if the feature is enabled, false otherwise.
    • setEnable

      public void setEnable(boolean enable)
      Sets the value of the `_bEnable` field.
      Parameters:
      enable - true to enable the feature, false to disable it.
    • isPreventGlobalReset

      public boolean isPreventGlobalReset()