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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    contextInitialized(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, wait

    Methods 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:
      contextInitialized in interface jakarta.servlet.ServletContextListener
      Parameters:
      sce - the servlet context event