pl.allegro.tech.hermes.consumers.di.TrackersBinder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hermes-consumers Show documentation
Show all versions of hermes-consumers Show documentation
Fast and reliable message broker built on top of Kafka.
package pl.allegro.tech.hermes.consumers.di;
import com.google.common.collect.ImmutableList;
import org.glassfish.hk2.utilities.binding.AbstractBinder;
import pl.allegro.tech.hermes.tracker.consumers.LogRepository;
import pl.allegro.tech.hermes.tracker.consumers.Trackers;
import java.util.List;
public class TrackersBinder extends AbstractBinder {
private final List logRepositories;
public TrackersBinder() {
this(ImmutableList.of());
}
public TrackersBinder(List logRepositories) {
this.logRepositories = logRepositories;
}
@Override
protected void configure() {
bind(new Trackers(logRepositories)).to(Trackers.class);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy