public class KKServletContextListener extends java.lang.Object implements KKServletContextListenerIf
| Modifier and Type | Class and Description |
|---|---|
protected class |
KKServletContextListener.KKThread
Used to store the Thread and an Id
|
| Constructor and Description |
|---|
KKServletContextListener()
A listener class must have a zero-argument constructor:
|
| Modifier and Type | Method and Description |
|---|---|
void |
contextDestroyed(javax.servlet.ServletContextEvent sce) |
void |
contextInitialized(javax.servlet.ServletContextEvent sce) |
static KKServletContextListenerIf |
get()
Gets the singleton KKServletContextListener instance.
|
void |
registerThread(java.lang.Thread thread,
java.lang.String id)
Accepts a thread that needs to be shut down when the web app is shut down
|
public KKServletContextListener()
public static KKServletContextListenerIf get()
public void contextInitialized(javax.servlet.ServletContextEvent sce)
contextInitialized in interface javax.servlet.ServletContextListenerpublic void contextDestroyed(javax.servlet.ServletContextEvent sce)
contextDestroyed in interface javax.servlet.ServletContextListenerpublic void registerThread(java.lang.Thread thread,
java.lang.String id)
KKServletContextListenerIfregisterThread in interface KKServletContextListenerIfthread - the Thread object that will receive the shutdown message at shutdownid - A String that indicates what the Thread isCopyright © 2018 DS Data Systems UK Ltd.