}
@Override
protected void configure() {
JmxService jmxService = new JmxService(Loggers.getLogger(JmxService.class, settings.get("name")), settings);
bind(JmxService.class).toInstance(jmxService);
<BUG>bind(GetJmxServiceUrlAction.class).asEagerSingleton();
bindListener(Matchers.any(), new JmxExporterTypeListener(jmxService));
}</BUG>
private static class JmxExporterTypeListener implements TypeListener {
private final JmxService jmxService;

}
@Override
protected void configure() {
JmxService jmxService = new JmxService(Loggers.getLogger(JmxService.class, settings.get("name")), settings);
bind(JmxService.class).toInstance(jmxService);
bind(GetJmxServiceUrlAction.class).asEagerSingleton();
if (JmxService.shouldExport(settings)) {
bindListener(Matchers.any(), new JmxExporterTypeListener(jmxService));
}
}
private static class JmxExporterTypeListener implements TypeListener {
private final JmxService jmxService;
