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

net.spals.appbuilder.app.examples.dropwizard.sample.SampleDropwizardBootstrapModule Maven / Gradle / Ivy

package net.spals.appbuilder.app.examples.dropwizard.sample;

import com.google.inject.Module;
import com.google.inject.name.Names;
import com.netflix.governator.guice.BootstrapBinder;
import com.netflix.governator.guice.BootstrapModule;

/**
 * A sample guice {@link BootstrapModule} for
 * {@link net.spals.appbuilder.app.dropwizard.DropwizardWebApp.Builder#addModule(Module)}
 *
 * @author tkral
 */
class SampleDropwizardBootstrapModule implements BootstrapModule {

    @Override
    public void configure(final BootstrapBinder bootstrapBinder) {
        bootstrapBinder.bind(String.class).annotatedWith(Names.named("BootstrapModule"))
                .toInstance(this.getClass().getSimpleName());
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy