@Override
protected void configure() {
MapBinder<String, Supplier<JsonBall>> mapbinder = ohaiAutomaticAttributeBinder(binder());
mapbinder.addBinding("test").toProvider(
Providers.of(Suppliers.ofInstance(new JsonBall("{\"prop1\":\"test1\"}"))));
}
}, new AbstractModule() {
@Override
protected void configure() {
MapBinder<String, Supplier<JsonBall>> mapbinder = ohaiAutomaticAttributeBinder(binder());
mapbinder.addBinding("test").toProvider(
Providers.of(Suppliers.ofInstance(new JsonBall("{\"prop2\":\"test2\"}"))));
}
});
Ohai ohai = injector.getInstance(Ohai.class);
Json json = injector.getInstance(Json.class);