Class PathCacheService

All Implemented Interfaces:
CacheableService<String,String>, Lutece107Cache<String,String>, LuteceService, Closeable, Serializable, AutoCloseable, Iterable<javax.cache.Cache.Entry<String,String>>, javax.cache.Cache<String,String>

@ApplicationScoped public class PathCacheService extends AbstractCacheableService<String,String>
XPage path cache service
See Also:
  • Constructor Details

    • PathCacheService

      public PathCacheService()
  • 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
    • getKey

      public String getKey(String strXPageName, int nMode, jakarta.servlet.http.HttpServletRequest request)
    • getKey

      public String getKey(String strXPageName, int nMode, String strTitlesUrls, jakarta.servlet.http.HttpServletRequest request)
    • processPageEvent

      public void processPageEvent(@Observes PageEvent event)
      Process a page event
      Parameters:
      event - The event to process
    • 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.