org.weakref.jmx.guice.ExportBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jmxutils Show documentation
Show all versions of jmxutils Show documentation
Exporting JMX mbeans made easy
package org.weakref.jmx.guice;
import com.google.inject.Key;
import com.google.inject.multibindings.Multibinder;
@Deprecated
public class ExportBuilder
{
private final Multibinder binder;
ExportBuilder(Multibinder binder)
{
this.binder = binder;
}
public AnnotatedExportBuilder export(Class> clazz)
{
return new AnnotatedExportBuilder(binder, Key.get(clazz));
}
public NamedBindingBuilder export(Key> key)
{
return new NamedBindingBuilder(binder, key);
}
}