Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.tapestry5.ioc.services
Interface ThreadLocale

All Known Implementing Classes:
  ThreadLocaleImpl

    public interface ThreadLocale

Stores the locale for the current thread. This value persists until `Registry.cleanupThread()` is invoked.

Method Summary
`java.util.Locale` | `getLocale()` Returns the thread's locale, which will be the JVM's default locale, until `setLocale(Locale)` is invoked.
`void` | `setLocale(java.util.Locale locale)` Updates the locale for the current thread.

Method Detail

### setLocale

    void setLocale(java.util.Locale locale)

  Updates the locale for the current thread.

  Parameters:
    `locale` - the new locale (may not be null)

### getLocale

    java.util.Locale getLocale()

  Returns the thread's locale, which will be the JVM's default locale, until `setLocale(Locale)` is invoked.

  Returns:
    the thread's locale

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2003-2012 The Apache Software Foundation.