Class XmlTransformerCacheService

java.lang.Object
fr.paris.lutece.portal.service.html.XmlTransformerCacheService
All Implemented Interfaces:
fr.paris.lutece.portal.service.cache.CacheableService<String,String>, fr.paris.lutece.portal.service.util.LuteceService

@ApplicationScoped public class XmlTransformerCacheService extends Object implements fr.paris.lutece.portal.service.cache.CacheableService<String,String>
XmlTransformerCacheService
Since:
v 3.0
  • Constructor Details

    • XmlTransformerCacheService

      public XmlTransformerCacheService()
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface fr.paris.lutece.portal.service.util.LuteceService
    • isCacheEnable

      public boolean isCacheEnable()
      Specified by:
      isCacheEnable in interface fr.paris.lutece.portal.service.cache.CacheableService<String,String>
    • getCacheSize

      public int getCacheSize()
      Specified by:
      getCacheSize in interface fr.paris.lutece.portal.service.cache.CacheableService<String,String>
    • resetCache

      public void resetCache()
      Specified by:
      resetCache in interface fr.paris.lutece.portal.service.cache.CacheableService<String,String>
    • enableCache

      public void enableCache(boolean bEnable)
      Specified by:
      enableCache in interface fr.paris.lutece.portal.service.cache.CacheableService<String,String>
    • getKeys

      public List<String> getKeys()
      Specified by:
      getKeys in interface fr.paris.lutece.portal.service.cache.CacheableService<String,String>
    • getInfos

      public String getInfos()
      Specified by:
      getInfos in interface fr.paris.lutece.portal.service.cache.CacheableService<String,String>
    • initializedService

      public void initializedService(@Observes @Initialized(jakarta.enterprise.context.ApplicationScoped.class) jakarta.servlet.ServletContext context)
      This method observes the initialization of the ApplicationScoped context and registers an instance of XmlTransformerCacheService with the CacheService.

      This method is triggered automatically by CDI when the ApplicationScoped context is initialized, which typically occurs during the startup of the application server.

      Parameters:
      context - the ServletContext that is initialized. This parameter is observed and injected automatically by CDI when the ApplicationScoped context is initialized.
    • isPreventGlobalReset

      public boolean isPreventGlobalReset()
      Specified by:
      isPreventGlobalReset in interface fr.paris.lutece.portal.service.cache.CacheableService<String,String>