org.apache.tapestry5.internal.services
Class LocalizationSetterImpl

java.lang.Object
  extended by org.apache.tapestry5.internal.services.LocalizationSetterImpl
All Implemented Interfaces:
LocalizationSetter

public class LocalizationSetterImpl
extends Object
implements LocalizationSetter

Given a set of supported locales, for a specified desired locale, sets the current thread's locale to a supported locale that is closest to the desired.


Constructor Summary
LocalizationSetterImpl(PersistentLocale persistentLocale, ThreadLocale threadLocale, String acceptedLocaleNames)
           
 
Method Summary
 void setThreadLocale(Locale desiredLocale)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalizationSetterImpl

public LocalizationSetterImpl(PersistentLocale persistentLocale,
                              ThreadLocale threadLocale,
                              @Inject@Symbol(value="tapestry.supported-locales")
                              String acceptedLocaleNames)
Method Detail

setThreadLocale

public void setThreadLocale(Locale desiredLocale)
Specified by:
setThreadLocale in interface LocalizationSetter


Copyright © 2006-2009 Apache Software Foundation. All Rights Reserved.