All Downloads are FREE. Search and download functionalities are using the official Maven repository.

pl.allegro.tech.hermes.consumers.di.TrackersBinder Maven / Gradle / Ivy

There is a newer version: 2.10.0
Show newest version
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