クラス 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) 方法の概要
修飾子と型メソッド説明booleanisAsync()booleanvoidsetBeanFactory(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, 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()