codahale/metrics — pull request #115 by jebl01 (2011-11-18 12:27:13+00:00)
Title: Customized binding of JmxReporter

When deploying/hot deploying servlets in Tomcat, its important that mbeans of an earlier version of the service gets unregistered when the servlet's context is destroyed. To be able to do this, there needs to be a way of controlling the lifespan of the started JmxReporter (when using Guice).

By allowing a custom binding of the JmxReporter, it will be possible to shut it down when the context is destroyed.