Equivalent for ServletContextListener in Play
===

I'm new to server-side development and have been experimenting with the Play framework recently. And I'm curious to know if there is an equivalent of ServletContextListener in Play.  I found an [Application][1] class and a [Plugin][2] class from the Javadocs.

I want to start a bluetooth server from my web application when it starts and want to shut it down when the web app quits.

Many thanks in advance.


  [1]: http://www.playframework.org/documentation/api/2.0.2/java/index.html
  [2]: http://www.playframework.org/documentation/api/2.0.2/java/index.html