Class AppInitListener

java.lang.Object
fr.paris.lutece.portal.service.init.AppInitListener

@ApplicationScoped public class AppInitListener extends Object
The initialization class of the application. This class is declared load-on-startup in the downloadFile web.xml
  • Constructor Details

    • AppInitListener

      public AppInitListener()
  • Method Details

    • initializedService

      public void initializedService(@Observes @Initialized(jakarta.enterprise.context.ApplicationScoped.class) @Priority(1) jakarta.servlet.ServletContext context)
      Initialize the service of application
      Parameters:
      context - the context servlet initialized event
    • initializedOtherService

      public void initializedOtherService(@Observes @Priority(3) @Initialized(jakarta.enterprise.context.ApplicationScoped.class) jakarta.servlet.ServletContext context)
      Initialize the service of application
      Parameters:
      context - the context servlet initialized event
    • contextDestroyed

      public void contextDestroyed(@Observes @Priority(1) @Destroyed(jakarta.enterprise.context.ApplicationScoped.class) jakarta.servlet.ServletContext context)
      Shutdown the application
      Parameters:
      destroyed - context event
    • initializedServiceFallback

      public void initializedServiceFallback(@Observes @Priority(6) jakarta.servlet.ServletContext context)
      Initialize the service of application. This method is a workaround to the Glassfish / Payara Issue https://github.com/payara/Payara/issues/5968
      Parameters:
      context - the context servlet event