Package org.kissweb.restServer
Class StartupListener
java.lang.Object
org.kissweb.restServer.StartupListener
- All Implemented Interfaces:
EventListener
,javax.servlet.ServletContextListener
Author: Blake McBride
Date: 4/17/20
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
contextDestroyed
(javax.servlet.ServletContextEvent sce) This method gets called when the server is shut down.void
contextInitialized
(javax.servlet.ServletContextEvent sce) This is the first method that gets called.
-
Constructor Details
-
StartupListener
public StartupListener()
-
-
Method Details
-
contextInitialized
public void contextInitialized(javax.servlet.ServletContextEvent sce) This is the first method that gets called. It is where the whole process starts.- Specified by:
contextInitialized
in interfacejavax.servlet.ServletContextListener
-
contextDestroyed
public void contextDestroyed(javax.servlet.ServletContextEvent sce) This method gets called when the server is shut down. It is the last method to be run.- Specified by:
contextDestroyed
in interfacejavax.servlet.ServletContextListener
-