Class MBeanModule

java.lang.Object
com.google.inject.AbstractModule
org.weakref.jmx.guice.MBeanModule
All Implemented Interfaces:
com.google.inject.Module

public class MBeanModule extends com.google.inject.AbstractModule
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected final void
     
    protected void
    Deprecated.
    subclassing no longer supported.
    export(com.google.inject.Key<?> key)
    Deprecated.
    export(Class<?> clazz)
    Deprecated.
    newExporter(com.google.inject.Binder binder)
    Deprecated.

    Methods inherited from class com.google.inject.AbstractModule

    addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, 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 Details

    • MBeanModule

      public MBeanModule()
  • Method Details

    • configure

      protected final void configure()
      Overrides:
      configure in class com.google.inject.AbstractModule
    • configureMBeans

      @Deprecated protected void configureMBeans()
      Deprecated.
      subclassing no longer supported. Use ExportBinder instead
      To be overridden by subclasses. E.g., protected void configureMBeans() { export(ManagedObject.class).as("test:name=X"); export(ManagedObject.class).annotatedWith(SomeAnnotation.class).as("test:name=Y"); } When ExportBuilder is used, a raw MBeanModule can be imported to trigger the registration of exported mbeans: Injector injector = Guice.createInjector(new MBeanModule(), new AbstractModule() {
    • export

      @Deprecated protected NamedBindingBuilder export(com.google.inject.Key<?> key)
      Deprecated.
    • export

      @Deprecated protected AnnotatedExportBuilder export(Class<?> clazz)
      Deprecated.
    • newExporter

      @Deprecated public static ExportBuilder newExporter(com.google.inject.Binder binder)
      Deprecated.