woolpack.locale
クラス LocaleFormatFactory

java.lang.Object
  上位を拡張 woolpack.locale.LocaleFormatFactory
すべての実装されたインタフェース:
FormatFactory

public class LocaleFormatFactory
extends java.lang.Object
implements FormatFactory

現在のスレッドのLocaleFormatFactoryを分岐するFormatFactory

作成者:
nakamura

コンストラクタの概要
LocaleFormatFactory(Switchable<java.util.Locale,FormatFactory> switchable, java.lang.ThreadLocal<java.util.Locale> threadLocal)
          コンストラクタ。
 
メソッドの概要
 java.text.Format newInstance()
          新しいインスタンスを返す。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

LocaleFormatFactory

public LocaleFormatFactory(Switchable<java.util.Locale,FormatFactory> switchable,
                           java.lang.ThreadLocal<java.util.Locale> threadLocal)
コンストラクタ。

パラメータ:
switchable - Localeと委譲先のSwitchable
threadLocal - 現在のスレッドのLocaleを保持するThreadLocal
例外:
java.lang.NullPointerException - 引数のいずれかが null の場合。
メソッドの詳細

newInstance

public java.text.Format newInstance()
インタフェース FormatFactory の記述:
新しいインスタンスを返す。

定義:
インタフェース FormatFactory 内の newInstance
戻り値:
新しいインスタンス。
例外:
java.lang.NullPointerException - ロケールに対するFormatFactoryが存在しない場合。