
io.paradoxical.dropwizard.guice.InjectorFactory 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.Injector;
import com.google.inject.Module;
import com.google.inject.Stage;
/**
* Factory to create Guice Injector with supplied Stage and List of Modules.
*
* Idea behind separating this out is to enable integrating applications to
* use alternate Guice factories like, - Mycila
* (https://code.google.com/p/mycila/), - Governator
* (https://github.com/Netflix/governator)
*/
public interface InjectorFactory {
Injector create(final Stage stage, final List modules);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy