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

org.spincast.plugins.localeresolver.SpincastLocaleResolverPluginGuiceModule Maven / Gradle / Ivy

There is a newer version: 0.9.22
Show newest version
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