nablarch.fw.invoker
クラス PipelineInvoker

java.lang.Object
  上位を拡張 nablarch.fw.invoker.PipelineInvoker

@Published(tag="architect")
public class PipelineInvoker
extends java.lang.Object

事前処理、事後処理を行うInvoker.


フィールドの概要
static java.lang.String PROCESSED_HANDLERS_KEY
          処理済ハンドラリストのキー。
 
コンストラクタの概要
PipelineInvoker()
           
 
メソッドの概要
protected  java.util.Set<java.lang.Object> getProcessedHandlers(nablarch.fw.ExecutionContext context)
          処理済ハンドラのSetを取得する。
protected  nablarch.fw.Result handleError(nablarch.fw.ExecutionContext context, java.lang.Error e)
          Error の例外処理を行う。
protected  nablarch.fw.Result handleException(nablarch.fw.ExecutionContext context, java.lang.Throwable t)
          例外処理を行う
protected  nablarch.fw.Result handleRuntimeException(nablarch.fw.ExecutionContext context, java.lang.RuntimeException e)
          RuntimeExceptionの例外処理を行う。
 nablarch.fw.Result invokeInbound(nablarch.fw.ExecutionContext context)
          事前処理を実行する。
 nablarch.fw.Result invokeOutbound(nablarch.fw.ExecutionContext context)
          事前処理を実行する。
 void setExceptionHandler(nablarch.fw.ExceptionHandler exceptionHandler)
          例外処理を行う ExceptionHandlerを設定する。
 void setHandlerListBuilder(PipelineListBuilder handlerListBuilder)
          実行対象となるハンドラリストを組み立てるPipelineListBuilder を設定する。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

PROCESSED_HANDLERS_KEY

public static final java.lang.String PROCESSED_HANDLERS_KEY
処理済ハンドラリストのキー。

関連項目:
定数フィールド値
コンストラクタの詳細

PipelineInvoker

public PipelineInvoker()
メソッドの詳細

setHandlerListBuilder

public void setHandlerListBuilder(PipelineListBuilder handlerListBuilder)
実行対象となるハンドラリストを組み立てるPipelineListBuilder を設定する。

パラメータ:
handlerListBuilder - 実行対象となるハンドラリストを組み立てるPipelineListBuilder

setExceptionHandler

public void setExceptionHandler(nablarch.fw.ExceptionHandler exceptionHandler)
例外処理を行う ExceptionHandlerを設定する。

パラメータ:
exceptionHandler - 例外処理を行う ExceptionHandler

invokeInbound

public nablarch.fw.Result invokeInbound(nablarch.fw.ExecutionContext context)
事前処理を実行する。

パラメータ:
context - ExecutionContext
戻り値:
処理結果

invokeOutbound

public nablarch.fw.Result invokeOutbound(nablarch.fw.ExecutionContext context)
事前処理を実行する。

パラメータ:
context - ExecutionContext
戻り値:
処理結果

handleException

protected nablarch.fw.Result handleException(nablarch.fw.ExecutionContext context,
                                             java.lang.Throwable t)
例外処理を行う

パラメータ:
context - ExecutionContext
t - 対象の例外(RuntimeException または Errorのいずれかとなる)
戻り値:
処理結果

getProcessedHandlers

protected java.util.Set<java.lang.Object> getProcessedHandlers(nablarch.fw.ExecutionContext context)
処理済ハンドラのSetを取得する。

パラメータ:
context - ExecutionContext
戻り値:
処理済ハンドラのSet

handleRuntimeException

protected nablarch.fw.Result handleRuntimeException(nablarch.fw.ExecutionContext context,
                                                    java.lang.RuntimeException e)
RuntimeExceptionの例外処理を行う。
例外をNablarchのハンドラでレスポンスとして処理する場合、 このハンドラより外部のハンドラが処理できるレスポンスオブジェクトを返す。

パラメータ:
context - ExecutionContext
e - 例外
戻り値:
例外を表すレスポンスオブジェクト
例外:
java.lang.RuntimeException - 例外を処理できない場合、または付け替えた例外

handleError

protected nablarch.fw.Result handleError(nablarch.fw.ExecutionContext context,
                                         java.lang.Error e)
                                  throws java.lang.Error
Error の例外処理を行う。
例外をNablarchのハンドラでレスポンスとして処理する場合、 このハンドラより外部のハンドラが処理できるレスポンスオブジェクトを返す。

パラメータ:
context - ExecutionContext
e - 例外
戻り値:
例外を表すレスポンスオブジェクト
例外:
java.lang.Error - 例外を処理できない場合
java.lang.RuntimeException - 例外を処理できない場合、または付け替えた例外