クラス ExpressionEvaluatingTransactionSynchronizationProcessor
java.lang.ObjectSE
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.transaction.ExpressionEvaluatingTransactionSynchronizationProcessor
- 実装済みのインターフェース一覧:
Aware, BeanFactoryAware, BeanNameAware, InitializingBean, ApplicationContextAware, ComponentSourceAware, ExpressionCapable, NamedComponent, TransactionSynchronizationProcessor
public class ExpressionEvaluatingTransactionSynchronizationProcessor
extends IntegrationObjectSupport
implements TransactionSynchronizationProcessor
この
TransactionSynchronizationFactory の実装により、SpEL 式を構成し、その実行をトランザクションと調整(同期)することができます。TransactionSynchronization を参照してください。before-commit、after-commit、after-rollback の式は、評価結果(存在する場合)が送信されるそれぞれの channel とともにサポートされます。サブ要素ごとに、「式」または「チャネル」属性、あるいはその両方を指定できます。'channel' 属性のみが存在する場合、受信したメッセージは特定の同期シナリオの一部としてそこに送信されます。
'expression' 属性のみが存在し、式の結果が Null 以外の値である場合、ペイロードとしての結果を含むメッセージが生成され、デフォルトチャネル(NullChannel)に送信され、ログに表示されます。評価結果を特定のチャネルに送信する場合は、'channel' 属性を追加します。式の結果が null または void の場合、メッセージは生成されません。
- 導入:
- 2.2
- 作成者:
- Gary Russell, Oleg Zhurakousky, Artem Bilan, Glenn Renfro
フィールド概要
クラス IntegrationObjectSupport から継承されたフィールド
EXPRESSION_PARSER, loggerコンストラクター概要
コンストラクター方法の概要
修飾子と型メソッド説明protected StandardEvaluationContextprotected voidonInit()サブクラスは、初期化ロジック用にこれを実装できます。voidvoidvoidvoidsetAfterCommitChannel(MessageChannel afterCommitChannel) voidsetAfterCommitExpression(Expression afterCommitExpression) voidsetAfterRollbackChannel(MessageChannel afterRollbackChannel) voidsetAfterRollbackExpression(Expression afterRollbackExpression) voidsetBeforeCommitChannel(MessageChannel beforeCommitChannel) voidsetBeforeCommitExpression(Expression beforeCommitExpression) voidsetIntegrationEvaluationContext(EvaluationContext evaluationContext) クラス IntegrationObjectSupport から継承されたメソッド
afterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanDescription, getBeanFactory, getBeanName, getChannelResolver, getComponentDescription, getComponentName, getComponentSource, getConversionService, getExpression, getIntegrationProperties, getMessageBuilderFactory, getTaskScheduler, isInitialized, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentDescription, setComponentName, setComponentSource, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toString
コンストラクターの詳細
ExpressionEvaluatingTransactionSynchronizationProcessor
public ExpressionEvaluatingTransactionSynchronizationProcessor()
方法の詳細
setIntegrationEvaluationContext
setBeforeCommitChannel
setAfterCommitChannel
setAfterRollbackChannel
setBeforeCommitExpression
setAfterCommitExpression
setAfterRollbackExpression
onInit
protected void onInit()クラスからコピーされた説明:IntegrationObjectSupportサブクラスは、初期化ロジック用にこれを実装できます。- オーバーライド:
- クラス
IntegrationObjectSupportのonInit
processBeforeCommit
- 次で指定:
- インターフェース
TransactionSynchronizationProcessor内のprocessBeforeCommit
processAfterCommit
- 次で指定:
- インターフェース
TransactionSynchronizationProcessor内のprocessAfterCommit
processAfterRollback
- 次で指定:
- インターフェース
TransactionSynchronizationProcessor内のprocessAfterRollback
getComponentType
- 次で指定:
- インターフェース
NamedComponent内のgetComponentType
createEvaluationContext