nablarch.common.handler.threadcontext
インタフェース ThreadContextAttribute<T>

型パラメータ:
T - ハンドラの入力データの型
既知の実装クラスの一覧:
ExecutionIdAttribute, InternalRequestIdAttribute, LanguageAttribute, RequestIdAttribute, TimeZoneAttribute, UserIdAttribute

@Published
public interface ThreadContextAttribute<T>

ThreadContextに設定する属性を返すインタフェース。

本インタフェースを実装したクラスは、スレッドコンテキストに設定する値を取得する責務を持つ。

関連項目:
ThreadContext

メソッドの概要
 java.lang.String getKey()
          スレッドコンテキストに格納する際に使用するプロパティのキー名を返す。
 java.lang.Object getValue(T req, nablarch.fw.ExecutionContext ctx)
          スレッドコンテキストに格納するプロパティの値を返す。
 

メソッドの詳細

getKey

java.lang.String getKey()
スレッドコンテキストに格納する際に使用するプロパティのキー名を返す。

戻り値:
プロパティのキー名

getValue

java.lang.Object getValue(T req,
                          nablarch.fw.ExecutionContext ctx)
スレッドコンテキストに格納するプロパティの値を返す。

パラメータ:
req - ハンドラの入力データ
ctx - 実行コンテキスト情報
戻り値:
プロパティの値