![JAR search and dependency download from the Maven repository](/logo.png)
net.spals.appbuilder.app.examples.dropwizard.sample.SampleDropwizardGuiceModule Maven / Gradle / Ivy
package net.spals.appbuilder.app.examples.dropwizard.sample;
import com.google.inject.AbstractModule;
import com.google.inject.Module;
import com.google.inject.name.Names;
/**
* A sample guice {@link Module} for
* {@link net.spals.appbuilder.app.dropwizard.DropwizardWebApp.Builder#addModule(Module)}
*
* @author tkral
*/
class SampleDropwizardGuiceModule extends AbstractModule {
@Override
protected void configure() {
binder().bind(String.class).annotatedWith(Names.named("GuiceModule"))
.toInstance(this.getClass().getSimpleName());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy