クラス 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, @Nullable StringSE methodName, boolean canProcessMessageList) MessagingMethodInvokerHelper(ObjectSE targetObject, @Nullable StringSE methodName, @Nullable ClassSE<?> expectedType, boolean canProcessMessageList) MessagingMethodInvokerHelper(ObjectSE targetObject, ClassSE<? extends AnnotationSE> annotationType, boolean canProcessMessageList) MessagingMethodInvokerHelper(ObjectSE targetObject, ClassSE<? extends AnnotationSE> annotationType, @Nullable ClassSE<?> expectedType, boolean canProcessMessageList) MessagingMethodInvokerHelper(ObjectSE targetObject, MethodSE method, boolean canProcessMessageList) MessagingMethodInvokerHelper(ObjectSE targetObject, MethodSE method, @Nullable ClassSE<?> expectedType, boolean canProcessMessageList) メソッドのサマリー
修飾子と型メソッド説明booleanisAsync()boolean@Nullable ObjectSE@Nullable ObjectSEvoidsetBeanFactory(BeanFactory beanFactory) 式で@beanNameを介した解決を有効にするには、BeanFactory を指定します。voidsetUseSpelInvoker(boolean useSpelInvoker) ターゲットメソッドの呼び出しに SpEL 式の評価またはInvocableHandlerMethodを使用するためのbooleanフラグ。voidstart()voidstop()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, @Nullable 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()