Class StartupServlet

java.lang.Object
me.nickhanson.codeforge.controller.StartupServlet
All Implemented Interfaces:
jakarta.servlet.ServletContextListener, EventListener, PropertiesLoader

@WebListener public class StartupServlet extends Object implements jakarta.servlet.ServletContextListener, PropertiesLoader
ServletContextListener that loads Cognito properties at application startup and makes them available as a servlet context attribute.
Author:
Nick Hanson
  • Constructor Details

    • StartupServlet

      public StartupServlet()
  • Method Details

    • contextInitialized

      public void contextInitialized(jakarta.servlet.ServletContextEvent sce)
      Loads Cognito properties and sets them as a servlet context attribute.
      Specified by:
      contextInitialized in interface jakarta.servlet.ServletContextListener
      Parameters:
      sce - the servlet context event