public class ServiceConditionFactoryImpl extends java.lang.Object implements ServiceConditionFactory, java.io.Serializable
KEY_ServiceConditionFactory
コンストラクタと説明 |
---|
ServiceConditionFactoryImpl(Resource resource,
ResourceSessionFilterFactory resourceFilterFactory,
ServiceConditionErrorHandlerFactory errorHandlerFactory)
コンストラクタ
|
修飾子とタイプ | メソッドと説明 |
---|---|
ServiceCondition |
getServiceCondition(Key serviceNameKey,
boolean beforeAfterFlag,
java.lang.Object conditionInfo)
before_condition !
|
public ServiceConditionFactoryImpl(Resource resource, ResourceSessionFilterFactory resourceFilterFactory, ServiceConditionErrorHandlerFactory errorHandlerFactory)
resource
- カーネルリソースresourceFilterFactory
- フィルタファクトリerrorHandlerFactory
- エラーハンドラファクトリpublic ServiceCondition getServiceCondition(Key serviceNameKey, boolean beforeAfterFlag, java.lang.Object conditionInfo) throws FatalException
before_condition !外部Heleperクラス名 ;; ":"を含む文字列の場合はServiceConditionFacadeを実装したBeanへのpath名とみなして処理を行う before_condition 存在チェック対象SessoinKeyリスト ;; default:existチェックかつ、continue trueで設定(no_check_keyは、no_check_session_key) (bofore_condition class 外部Helperクラス名 ;; ":"を含む文字列の場合はServiceConditionItemFacadeのBeanへのpath名とみなして処理を行う ) (before_condition ;; またはafter_condition exist 存在をチェックするSessionキー名 ;; Sessionキー名は","に続けて複数記述可能 error 例外メッセージ | &Skip | &Return | !haderClass | !xxx:handlerPath ;; 何も指定しないと skipと見なされる ) (before_condition exist 存在をチェックするSessionキー名 ;; Sessionキー名は","に続けて複数記述可能 no_check Sessionキー名 ;; no_checkに指定されたキーがSessionに存在した場合、条件の適用を行わない(チェックのスキップを行う) ) (before_condition not_exist 非存在をチェックするSessionキー名;; Sessionキー名は","に続けて複数記述可能 ;; errorもskipも記述しない場合はskipと見なされる clear Sessionにnullを設定するSessionKeyのリスト ;; errorにskipまたはreturnを設定した場合に有効 ) (before_condition filter SessionFilterFactoryに対するFilter文字列 error 例外メッセージ ) (before_condition filter !SessionFilterをimplementsした外部Helperクラス名 ;; ":"を含む文字列の場合はSessionFilterFacadeを実装したBeanへのpath名とみなして処理を行う error 例外メッセージ ) [before_condition exist 存在をチェックするSessionキー名 ;; Sessionキー名は","に続けて複数記述可能 error 例外メッセージ continue true / false ;; (option)記述しない場合はfalse 継続チェック可能などうかを指定する。継続チェック可能の場合、非継続チェック可能な条件までチェックが続けて行われ、最後にそのすべての例外メッセージを保持したServiceExceptionが送信される , 次の条件... ]
getServiceCondition
インタフェース内 ServiceConditionFactory
serviceNameKey
- サービス名(Key)beforeAfterFlag
- before_conditionかafter_conditionかを表すフラグconditionInfo
- 生成するConditionの情報FatalException
- ServiceCondition生成で致命的エラーが発生