org.javers.core.pico.AddOnsModule Maven / Gradle / Ivy
package org.javers.core.pico;
import org.picocontainer.MutablePicoContainer;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
import java.util.Set;
public class AddOnsModule extends InstantiatingModule{
private final Set implementations;
public AddOnsModule(MutablePicoContainer container, Collection implementations) {
super(container);
this.implementations = new HashSet<>(implementations);
}
@Override
public Collection getImplementations() {
return Collections.unmodifiableSet(implementations);
}
}