Package com.openmeet.webservice

# Class MainContext

java.lang.Object
com.openmeet.webservice.MainContext

All Implemented Interfaces:
  `jakarta.servlet.ServletContextListener`, `EventListener`

@WebListener public class MainContext extends Object implements jakarta.servlet.ServletContextListener
Initializes the DataSource for the Db Connection just once in the lifetime of the application when it starts up.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `MainContext()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `contextDestroyed(jakarta.servlet.ServletContextEvent sce)`
  `void`
  `contextInitialized(jakarta.servlet.ServletContextEvent sce)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### MainContext

    public MainContext()

- ## Method Details

  - ### contextInitialized

    public void contextInitialized(jakarta.servlet.ServletContextEvent sce)
    Specified by:
      `contextInitialized` in interface `jakarta.servlet.ServletContextListener`

  - ### contextDestroyed

    public void contextDestroyed(jakarta.servlet.ServletContextEvent sce)
    Specified by:
      `contextDestroyed` in interface `jakarta.servlet.ServletContextListener`