org.hrodberaht.i18n.locale
Class LocaleProvider

java.lang.Object
  extended by org.hrodberaht.i18n.locale.LocaleProvider

public class LocaleProvider
extends java.lang.Object

Simple Java Utils

Since:
1.0
Version:
1.0
Author:
Robert Alexandersson

Method Summary
static Container getInjectionContainer()
          Use the injection container to change the implementation fo the LocaleProvider.
static LocaleProfile getProfile()
           
static java.util.Locale getSystemLocale()
           
static void seDefaultLocaleProvider()
           
static void setProfile(LocaleProfile profile)
           
static void setThreadLocaleProvider()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setThreadLocaleProvider

public static void setThreadLocaleProvider()

seDefaultLocaleProvider

public static void seDefaultLocaleProvider()

getInjectionContainer

public static Container getInjectionContainer()
Use the injection container to change the implementation fo the LocaleProvider. Default version setup is SimpleLocaleProvider and anything implementing ProviderInterface will suffice. To Change registered service simply do this InjectionRegisterJava registerJava = new InjectionRegisterJava( (SimpleInjection)LocaleProvider.getInjectionContainer()); registerJava.register(ProviderInterface.class, ThreadLocaleProvider.class);

Returns:
the Container used for LocaleProvider

getProfile

public static LocaleProfile getProfile()

getSystemLocale

public static java.util.Locale getSystemLocale()

setProfile

public static void setProfile(LocaleProfile profile)


Copyright © 2010. All Rights Reserved.