1 16 17 package org.springframework.context.i18n; 18 19 import java.util.Locale ; 20 21 import org.springframework.util.Assert; 22 23 30 public class SimpleLocaleContext implements LocaleContext { 31 32 private final Locale locale; 33 34 39 public SimpleLocaleContext(Locale locale) { 40 Assert.notNull(locale, "Locale must not be null"); 41 this.locale = locale; 42 } 43 44 public Locale getLocale() { 45 return locale; 46 } 47 48 } 49 | Popular Tags |