org.talend.components.service.rest.i18n.LocaleProviderSpring.java Source code

Java tutorial

Introduction

Here is the source code for org.talend.components.service.rest.i18n.LocaleProviderSpring.java

Source

// ============================================================================
//
// Copyright (C) 2006-2015 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
//
// You should have received a copy of the agreement
// along with this program; if not, write to Talend SA
// 9 rue Pages 92150 Suresnes, France
//
// ============================================================================
package org.talend.components.service.rest.i18n;

import java.util.Locale;

import org.springframework.stereotype.Component;
import org.talend.daikon.i18n.LocaleProvider;

/**
 * LocaleProvider implementation for Spring container
 */
@Component
public class LocaleProviderSpring implements LocaleProvider {

    @Override
    public Locale getLocale() {
        return Locale.getDefault();
    }

}