net.bull.javamelody
Class MonitoringGuiceModule

java.lang.Object
  extended by com.google.inject.AbstractModule
      extended by net.bull.javamelody.MonitoringGuiceModule
All Implemented Interfaces:
com.google.inject.Module

public class MonitoringGuiceModule
extends com.google.inject.AbstractModule

Module Guice pour configurer l'intercepteur de monitoring utilisant l'annotation MonitoredWithGuice, sur des classes et/ou sur des méthodes.
Ce module fait simplement:
// for annotated methods with MonitoredWithGuice
bindInterceptor(Matchers.any(), Matchers.annotatedWith(MonitoredWithGuice.class), new MonitoringGuiceInterceptor());
// and for annotated classes with MonitoredWithGuice
bindInterceptor(Matchers.annotatedWith(MonitoredWithGuice.class), Matchers.any(), new MonitoringGuiceInterceptor());

Author:
Emeric Vernat

Constructor Summary
MonitoringGuiceModule()
           
 
Method Summary
protected  void configure()
          
 
Methods inherited from class com.google.inject.AbstractModule
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MonitoringGuiceModule

public MonitoringGuiceModule()
Method Detail

configure

protected void configure()

Specified by:
configure in class com.google.inject.AbstractModule


Copyright © 2008-2010 Emeric Vernat. All Rights Reserved.