
com.wealdtech.hawk.guice.HawkServerConfigurationModule Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hawk-core Show documentation
Show all versions of hawk-core Show documentation
Java implementation of Hawk protocol - core
The newest version!
package com.wealdtech.hawk.guice;
import com.google.inject.AbstractModule;
import com.wealdtech.hawk.HawkServerConfiguration;
/**
* Make Hawk configuration available to Guice
*/
public class HawkServerConfigurationModule extends AbstractModule
{
private final HawkServerConfiguration configuration;
public HawkServerConfigurationModule(final HawkServerConfiguration configuration)
{
super();
this.configuration = configuration;
}
@Override
protected void configure()
{
binder().bind(HawkServerConfiguration.class).toInstance(this.configuration);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy