package uk.org.sappho.configuration;

import com.google.inject.AbstractModule;

public class SimpleConfigurationModule extends AbstractModule {

    @Override
    protected void configure() {
        bind(Configuration.class).to(SimpleConfiguration.class);
    }
}

package uk.org.sappho.configuration;

import com.google.inject.AbstractModule;

public class SimpleConfigurationModule extends AbstractModule {

    private final Configuration config;

    public SimpleConfigurationModule() {
        config = new SimpleConfiguration();
    }

    public SimpleConfigurationModule(Configuration config) {
        this.config = config;
    }

    @Override
    protected void configure() {
        bind(Configuration.class).toInstance(config);
    }
}

Load modules not classes.