Class LinksIncludeCacheService

java.lang.Object
fr.paris.lutece.portal.service.cache.AbstractCacheableService<String,Map<String,Object>>
fr.paris.lutece.portal.web.includes.LinksIncludeCacheService
All Implemented Interfaces:
CacheableService<String,Map<String,Object>>, Lutece107Cache<String,Map<String,Object>>, LuteceService, Closeable, Serializable, AutoCloseable, Iterable<javax.cache.Cache.Entry<String,Map<String,Object>>>, javax.cache.Cache<String,Map<String,Object>>

@ApplicationScoped public class LinksIncludeCacheService extends AbstractCacheableService<String,Map<String,Object>>
Cache service for LinksInclude
See Also:
  • Field Details

  • Constructor Details

    • LinksIncludeCacheService

      public LinksIncludeCacheService()
  • Method Details

    • init

      @PostConstruct public void init()
    • getName

      public String getName()
      Description copied from interface: LuteceService
      Returns the Service name
      Returns:
      The name as a String
    • getCacheKey

      public String getCacheKey(int nMode, String strPage, Locale locale)
      Get a cache key
      Parameters:
      nMode - mode
      strPage - page id
      locale - locale
      Returns:
      a cache key
    • processPluginEvent

      public void processPluginEvent(@Observes PluginEvent event)
      This method observes the plugin events
      Parameters:
      event - The plugin event
    • initializedService

      public void initializedService(@Observes @Initialized(jakarta.enterprise.context.ApplicationScoped.class) jakarta.servlet.ServletContext context)
      This method observes the initialization of the ApplicationScoped context. It ensures that this CDI beans are instantiated at the application startup.

      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.