
io.paradoxical.dropwizard.guice.DefaultInjectorFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dropwizard-guice Show documentation
Show all versions of dropwizard-guice Show documentation
Simple library for using Guice DI in a dropwizard service forked from hubspot/dropwizard-guice.
package io.paradoxical.dropwizard.guice;
import java.util.List;
import com.google.inject.Guice;
import com.google.inject.Injector;
import com.google.inject.Module;
import com.google.inject.Stage;
public class DefaultInjectorFactory implements InjectorFactory {
@Override
public Injector create(final Stage stage, final List modules) {
return Guice.createInjector(stage,modules);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy