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.internal.services
Class ThreadLocaleImpl

    java.lang.Object
      org.apache.tapestry5.ioc.internal.services.ThreadLocaleImpl

All Implemented Interfaces:
  ThreadLocale

    @Scope(value="perthread")
    public class ThreadLocaleImpl

extends java.lang.Object
implements ThreadLocale

Constructor Summary
`ThreadLocaleImpl()`

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

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### ThreadLocaleImpl

    public ThreadLocaleImpl()

Method Detail

### getLocale

    public java.util.Locale getLocale()

  Description copied from interface: `ThreadLocale`
  Returns the thread's locale, which will be the JVM's default locale, until `ThreadLocale.setLocale(Locale)` is invoked.

  Specified by:
    `getLocale` in interface `ThreadLocale`
  Returns:
    the thread's locale

### setLocale

    public void setLocale(java.util.Locale locale)

  Description copied from interface: `ThreadLocale`
  Updates the locale for the current thread.

  Specified by:
    `setLocale` in interface `ThreadLocale`
  Parameters:
    `locale` - the new locale (may not be null)

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.