public class MonitoringGuiceModule
extends com.google.inject.AbstractModule
MonitoredWithGuice, sur des classes et/ou sur des méthodes.
// 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());
| Constructor and Description |
|---|
MonitoringGuiceModule() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configure() |
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBindingCopyright © 2008–2020 Emeric Vernat. All rights reserved.