Package me.nickhanson.codeforge.web
Class AppBootstrap
java.lang.Object
me.nickhanson.codeforge.web.AppBootstrap
- All Implemented Interfaces:
jakarta.servlet.ServletContextListener,EventListener
@WebListener
public class AppBootstrap
extends Object
implements jakarta.servlet.ServletContextListener
Application bootstrap listener to initialize services and seed data.
Registers service singletons in the servlet context and seeds development data if necessary.
This class is automatically detected and invoked by the servlet container.
- Author:
- Nick Hanson
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcontextInitialized(jakarta.servlet.ServletContextEvent sce) Initialize the servlet context by creating service singletons and seeding data.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jakarta.servlet.ServletContextListener
contextDestroyed
-
Constructor Details
-
AppBootstrap
public AppBootstrap()
-
-
Method Details
-
contextInitialized
public void contextInitialized(jakarta.servlet.ServletContextEvent sce) Initialize the servlet context by creating service singletons and seeding data.- Specified by:
contextInitializedin interfacejakarta.servlet.ServletContextListener- Parameters:
sce- the servlet context event
-