org.wso2.carbon.ml.rest.api.handler

## Class ShutdownListener

- java.lang.Object
- - org.wso2.carbon.ml.rest.api.handler.ShutdownListener

- All Implemented Interfaces:
    EventListener, javax.servlet.ServletContextListener

      public class ShutdownListener
      extends Object
      implements javax.servlet.ServletContextListener

  This shutdown hook will make the REST API to wait till the resources it used, clean up.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ShutdownListener()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `contextDestroyed(javax.servlet.ServletContextEvent arg0)`
    `void` | `contextInitialized(javax.servlet.ServletContextEvent arg0)`

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

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

- - ### Constructor Detail

    - #### ShutdownListener

          public ShutdownListener()

  - ### Method Detail

    - #### contextDestroyed

          public void contextDestroyed(javax.servlet.ServletContextEvent arg0)

      Specified by:
        `contextDestroyed` in interface `javax.servlet.ServletContextListener`

    - #### contextInitialized

          public void contextInitialized(javax.servlet.ServletContextEvent arg0)

      Specified by:
        `contextInitialized` in interface `javax.servlet.ServletContextListener`

Copyright © 2017 WSO2, Inc.. All Rights Reserved.