クラス MessagingMethodInvokerHelper
java.lang.ObjectSE
org.springframework.integration.util.AbstractExpressionEvaluator
org.springframework.integration.handler.support.MessagingMethodInvokerHelper
- 実装されたすべてのインターフェース:
Aware
、BeanFactoryAware
、InitializingBean
、Lifecycle
、ManageableLifecycle
public class MessagingMethodInvokerHelper
extends AbstractExpressionEvaluator
implements ManageableLifecycle
メッセージペイロードとヘッダーの組み合わせを引数として使用して、ターゲットオブジェクトのメソッドを呼び出すプロセッサーのヘルパークラス。メソッドインスタンスまたはメソッド名は、コンストラクター引数として指定できます。メソッド名が指定されていて、宣言された複数のメソッドがその名前を持っている場合、メソッドの選択は、基になる SpEL メソッドの解決に基づいて動的になります。あるいは、SpEL のメソッド解決の候補が、メソッド名ではなくそのアノテーションの存在によって決定されるように、アノテーション型を提供することもできます。
- 導入:
- 2.0
- 作成者:
- Mark Fisher, Oleg Zhurakousky, Dave Syer, Gunnar Hillert, Soby Chacko, Gary Russell, Artem Bilan, Trung Pham, Christian Tzolov
ネストされたクラスのサマリー
ネストされたクラスフィールドのサマリー
クラス org.springframework.integration.util.AbstractExpressionEvaluator から継承されたフィールド
EXPRESSION_PARSER, logger
コンストラクターの概要
コンストラクターコンストラクター説明MessagingMethodInvokerHelper
(ObjectSE targetObject, ClassSE<? extends AnnotationSE> annotationType, boolean canProcessMessageList) MessagingMethodInvokerHelper
(ObjectSE targetObject, ClassSE<? extends AnnotationSE> annotationType, ClassSE<?> expectedType, boolean canProcessMessageList) MessagingMethodInvokerHelper
(ObjectSE targetObject, MethodSE method, boolean canProcessMessageList) MessagingMethodInvokerHelper
(ObjectSE targetObject, MethodSE method, ClassSE<?> expectedType, boolean canProcessMessageList) MessagingMethodInvokerHelper
(ObjectSE targetObject, StringSE methodName, boolean canProcessMessageList) MessagingMethodInvokerHelper
(ObjectSE targetObject, StringSE methodName, ClassSE<?> expectedType, boolean canProcessMessageList) メソッドのサマリー
修飾子と型メソッド説明boolean
isAsync()
boolean
void
setBeanFactory
(BeanFactory beanFactory) 式で@beanName
を介した解決を有効にするには、BeanFactory を指定します。void
setUseSpelInvoker
(boolean useSpelInvoker) ターゲットメソッドの呼び出しに SpEL 式の評価またはInvocableHandlerMethod
を使用するためのboolean
フラグ。void
start()
void
stop()
toString()
クラス org.springframework.integration.util.AbstractExpressionEvaluator から継承されたメソッド
afterPropertiesSet, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, getBeanFactory, getEvaluationContext, getEvaluationContext, getMessageBuilderFactory, onInit, setConversionService, setSimpleEvaluationContext
コンストラクターの詳細
MessagingMethodInvokerHelper
MessagingMethodInvokerHelper
MessagingMethodInvokerHelper
MessagingMethodInvokerHelper
MessagingMethodInvokerHelper
public MessagingMethodInvokerHelper(ObjectSE targetObject, ClassSE<? extends AnnotationSE> annotationType, boolean canProcessMessageList) MessagingMethodInvokerHelper
public MessagingMethodInvokerHelper(ObjectSE targetObject, ClassSE<? extends AnnotationSE> annotationType, ClassSE<?> expectedType, boolean canProcessMessageList)
メソッドの詳細
setUseSpelInvoker
public void setUseSpelInvoker(boolean useSpelInvoker) ターゲットメソッドの呼び出しに SpEL 式の評価またはInvocableHandlerMethod
を使用するためのboolean
フラグ。- パラメーター:
useSpelInvoker
- SpEL 式の評価を使用するかどうか。- 導入:
- 5.0
setBeanFactory
クラスからコピーされた説明:AbstractExpressionEvaluator
式で@beanName
を介した解決を有効にするには、BeanFactory を指定します。- 次で指定:
- インターフェース
BeanFactoryAware
のsetBeanFactory
- オーバーライド:
- クラス
AbstractExpressionEvaluator
のsetBeanFactory
process
process
toString
start
public void start()- 次で指定:
- インターフェース
Lifecycle
のstart
- 次で指定:
- インターフェース
ManageableLifecycle
のstart
stop
public void stop()- 次で指定:
- インターフェース
Lifecycle
のstop
- 次で指定:
- インターフェース
ManageableLifecycle
のstop
isRunning
public boolean isRunning()- 次で指定:
- インターフェース
Lifecycle
のisRunning
- 次で指定:
- インターフェース
ManageableLifecycle
のisRunning
isAsync
public boolean isAsync()