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
-
Field Summary
Fields inherited from interface me.nickhanson.codeforge.config.PropertiesLoader
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcontextInitialized(jakarta.servlet.ServletContextEvent sce) Loads Cognito properties and sets them as a servlet context attribute.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface me.nickhanson.codeforge.config.PropertiesLoader
loadPropertiesMethods inherited from interface jakarta.servlet.ServletContextListener
contextDestroyed
-
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:
contextInitializedin interfacejakarta.servlet.ServletContextListener- Parameters:
sce- the servlet context event
-