Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package pl.matisoft.soy.locale;
 
 
Created with IntelliJ IDEA. User: mati Date: 20/06/2013 Time: 22:59 A default implementation that returns a locale passed as a configuration.
public class DefaultLocaleProvider implements LocaleProvider {
    private Locale locale = .;
    public DefaultLocaleProvider(Locale locale) {
        this. = locale;
    }
    public DefaultLocaleProvider() {
    }
    @Override
    public Optional<LocaleresolveLocale(final HttpServletRequest request) {
        return Optional.fromNullable();
    }
    public void setLocale(final Locale locale) {
        this. = locale;
    }
New to GrepCode? Check out our FAQ X