org.spincast.plugins.localeresolver.SpincastLocaleResolverPluginGuiceModule Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spincast-plugins-locale-resolver Show documentation
Show all versions of spincast-plugins-locale-resolver Show documentation
The default Spincast Locale Resolver plugin
package org.spincast.plugins.localeresolver;
import java.lang.reflect.Type;
import org.spincast.core.guice.SpincastPluginGuiceModuleBase;
import org.spincast.core.locale.ILocaleResolver;
import com.google.inject.Scopes;
/**
* Guice module for the Spincast Locale Resolver plugin.
*/
public class SpincastLocaleResolverPluginGuiceModule extends SpincastPluginGuiceModuleBase {
/**
* Constructor.
*/
public SpincastLocaleResolverPluginGuiceModule(Type requestContextType) {
super(requestContextType);
}
@Override
protected void configure() {
bindLocaleResolver();
}
protected void bindLocaleResolver() {
bind(ILocaleResolver.class).to(SpincastLocaleResolver.class).in(Scopes.SINGLETON);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy