public abstract class IntegrationNamespaceUtils extends ObjectSE
修飾子と型 | フィールドと説明 |
---|---|
static StringSE | AUTO_STARTUP |
static StringSE | EXPRESSION_ATTRIBUTE |
static StringSE | METHOD_ATTRIBUTE |
static StringSE | ORDER |
static StringSE | PHASE |
static StringSE | REF_ATTRIBUTE |
static StringSE | REQUEST_HANDLER_ADVICE_CHAIN |
static StringSE | ROLE |
コンストラクターと説明 |
---|
IntegrationNamespaceUtils() |
修飾子と型 | メソッドと説明 |
---|---|
static void | checkAndConfigureFixedSubscriberChannel(ElementSE element, ParserContext parserContext, StringSE channelName, StringSE handlerBeanName) |
static ManagedList | configureAdviceChain(ElementSE adviceChainElement, ElementSE txElement, BeanDefinition parentBeanDefinition, ParserContext parserContext) |
static ManagedList | configureAdviceChain(ElementSE adviceChainElement, ElementSE txElement, boolean handleMessageAdvice, BeanDefinition parentBeanDefinition, ParserContext parserContext) |
static void | configureAndSetAdviceChainIfPresent(ElementSE adviceChainElement, ElementSE txElement, BeanDefinition parentBeanDefinition, ParserContext parserContext) |
static void | configureAndSetAdviceChainIfPresent(ElementSE adviceChainElement, ElementSE txElement, BeanDefinition parentBeanDefinition, ParserContext parserContext, StringSE propertyName) |
static void | configureAndSetAdviceChainIfPresent(ElementSE adviceChainElement, ElementSE txElement, boolean handleMessageAdvice, BeanDefinition parentBeanDefinition, ParserContext parserContext) |
static void | configureAndSetAdviceChainIfPresent(ElementSE adviceChainElement, ElementSE txElement, boolean handleMessageAdvice, BeanDefinition parentBeanDefinition, ParserContext parserContext, StringSE propertyName) |
static void | configureHeaderMapper(ElementSE element, BeanDefinitionBuilder rootBuilder, ParserContext parserContext, BeanDefinitionBuilder headerMapperBuilder, StringSE replyHeaderValueArg) 受信および送信チャネルアダプター / ゲートウェイ用に HeaderMapper を構成するためのユーティリティメソッド。 |
static void | configureHeaderMapper(ElementSE element, BeanDefinitionBuilder rootBuilder, ParserContext parserContext, ClassSE<?> headerMapperClass, StringSE replyHeaderValue) 受信および送信チャネルアダプター / ゲートウェイ用に HeaderMapper を構成するためのユーティリティメソッド。 |
static void | configurePollerMetadata(ElementSE pollerElement, BeanDefinitionBuilder targetBuilder, ParserContext parserContext) "poller" 要素を解析して、ターゲット BeanDefinitionBuilder の参照を提供します。 |
static BeanDefinition | configureTransactionAttributes(ElementSE txElement) "transactional" 要素 を解析し、"transactionManager" およびその他の "transactionDefinition" プロパティを使用して TransactionInterceptor を構成します。 |
static BeanDefinition | configureTransactionAttributes(ElementSE txElement, boolean handleMessageAdvice) "transactional" 要素 を解析し、"transactionManager" およびその他の "transactionDefinition" プロパティを使用して TransactionInterceptor または TransactionHandleMessageAdvice を構成します。 |
static BeanDefinition | configureTransactionDefinition(ElementSE txElement) "transactional" 要素 の属性を解析し、提供された "transactionDefinition" プロパティを使用して DefaultTransactionAttribute を構成します。 |
static StringSE | createDirectChannel(ElementSE element, ParserContext parserContext) |
static StringSE | createElementDescription(ElementSE element) ノード名に基づいた要素のわかりやすい説明と、可能な場合は "id" 属性値を提供します。 |
static BeanDefinition | createExpressionDefIfAttributeDefined(StringSE expressionElementName, ElementSE element) |
static BeanDefinition | createExpressionDefinitionFromValueOrExpression(StringSE valueElementName, StringSE expressionElementName, ParserContext parserContext, ElementSE element, boolean oneRequired) |
static StringSE[] | generateAlias(ElementSE element) |
static StringSE | getTextFromAttributeOrNestedElement(ElementSE element, StringSE name, ParserContext parserContext) 名前付き属性が存在する場合はそれからテキスト値を取得します。存在しない場合は、同じ名前のネストされた要素がないかどうかを確認します。 |
static void | injectConstructorWithAdapter(StringSE beanRefAttribute, StringSE methodRefAttribute, StringSE expressionAttribute, StringSE adapterClass, ElementSE element, BeanDefinitionBuilder builder, BeanMetadataElement processor, ParserContext parserContext) |
static void | injectPropertyWithAdapter(StringSE beanRefAttribute, StringSE methodRefAttribute, StringSE expressionAttribute, StringSE beanProperty, StringSE adapterClass, ElementSE element, BeanDefinitionBuilder builder, BeanMetadataElement processor, ParserContext parserContext) |
static BeanComponentDefinition | parseInnerHandlerDefinition(ElementSE element, ParserContext parserContext) |
static void | setReferenceIfAttributeDefined(BeanDefinitionBuilder builder, ElementSE element, StringSE attributeName) 提供されている Bean 定義ビルダーを、Bean へのプロパティ参照で構成します。 |
static void | setReferenceIfAttributeDefined(BeanDefinitionBuilder builder, ElementSE element, StringSE attributeName, boolean emptyStringAllowed) |
static void | setReferenceIfAttributeDefined(BeanDefinitionBuilder builder, ElementSE element, StringSE attributeName, StringSE propertyName) 提供されている Bean 定義ビルダーを、Bean へのプロパティ参照で構成します。 |
static void | setReferenceIfAttributeDefined(BeanDefinitionBuilder builder, ElementSE element, StringSE attributeName, StringSE propertyName, boolean emptyStringAllowed) |
static void | setValueIfAttributeDefined(BeanDefinitionBuilder builder, ElementSE element, StringSE attributeName) 提供された Bean 定義ビルダーを、その属性が指定された要素で定義されている場合に名前が指定された属性に対応するプロパティ値で構成します。 |
static void | setValueIfAttributeDefined(BeanDefinitionBuilder builder, ElementSE element, StringSE attributeName, boolean emptyStringAllowed) 提供された Bean 定義ビルダーを、その属性が指定された要素で定義されている場合に名前が指定された属性に対応するプロパティ値で構成します。 |
static void | setValueIfAttributeDefined(BeanDefinitionBuilder builder, ElementSE element, StringSE attributeName, StringSE propertyName) 提供された Bean 定義ビルダーを、その属性が指定された要素で定義されている場合に名前が指定された属性に対応するプロパティ値で構成します。 |
static void | setValueIfAttributeDefined(BeanDefinitionBuilder builder, ElementSE element, StringSE attributeName, StringSE propertyName, boolean emptyStringAllowed) 提供された Bean 定義ビルダーを、その属性が指定された要素で定義されている場合に名前が指定された属性に対応するプロパティ値で構成します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public static final StringSE REQUEST_HANDLER_ADVICE_CHAIN
public static void setValueIfAttributeDefined(BeanDefinitionBuilder builder, ElementSE element, StringSE attributeName, StringSE propertyName)
builder
- 構成する Bean 定義ビルダー element
- 属性を定義する必要がある XML 要素 attributeName
- プロパティの入力に使用される値を持つ属性の名前 propertyName
- 設定するプロパティの名前 public static void setValueIfAttributeDefined(BeanDefinitionBuilder builder, ElementSE element, StringSE attributeName)
プロパティ名は、小文字のハイフンで区切られた属性のキャメルケース相当になります (たとえば、"foo-bar" 属性 は "fooBar" プロパティと一致します)。
builder
- 構成する Bean 定義ビルダー element
- - 属性を定義する必要がある XML 要素 attributeName
- - プロパティに値が設定される属性の名前 Conventions.attributeNameToPropertyName(String)
public static void setValueIfAttributeDefined(BeanDefinitionBuilder builder, ElementSE element, StringSE attributeName, StringSE propertyName, boolean emptyStringAllowed)
builder
- 構成する Bean 定義ビルダー element
- 属性を定義する必要がある XML 要素 attributeName
- プロパティの入力に使用される値を持つ属性の名前 propertyName
- 設定するプロパティの名前 emptyStringAllowed
- -true の場合、空の文字列("")でも値が設定されます。false の場合、空の文字列は、属性が提供されなかったかのように扱われます。public static void setValueIfAttributeDefined(BeanDefinitionBuilder builder, ElementSE element, StringSE attributeName, boolean emptyStringAllowed)
プロパティ名は、小文字のハイフンで区切られた属性のキャメルケース相当になります (たとえば、"foo-bar" 属性 は "fooBar" プロパティと一致します)。
builder
- 構成する Bean 定義ビルダー element
- - 属性を定義する必要がある XML 要素 attributeName
- - プロパティに値が設定される属性の名前 emptyStringAllowed
- -true の場合、空の文字列("")でも値が設定されます。false の場合、空の文字列は、属性が提供されなかったかのように扱われます。Conventions.attributeNameToPropertyName(String)
public static void setReferenceIfAttributeDefined(BeanDefinitionBuilder builder, ElementSE element, StringSE attributeName, StringSE propertyName)
builder
- 構成する Bean 定義ビルダー element
- 属性を定義する必要がある XML 要素 attributeName
- プロパティを設定するための Bean 参照として使用される値を持つ属性の名前 propertyName
- 設定するプロパティの名前 public static void setReferenceIfAttributeDefined(BeanDefinitionBuilder builder, ElementSE element, StringSE attributeName, StringSE propertyName, boolean emptyStringAllowed)
public static void setReferenceIfAttributeDefined(BeanDefinitionBuilder builder, ElementSE element, StringSE attributeName)
プロパティ名は、小文字のハイフンで区切られた属性のキャメルケース相当になります (たとえば、"foo-bar" 属性 は "fooBar" プロパティと一致します)。
builder
- 構成する Bean 定義ビルダー element
- - 属性を定義する必要がある XML 要素 attributeName
- - プロパティを設定するための Bean 参照として使用される値を持つ属性の名前 Conventions.attributeNameToPropertyName(String)
public static void setReferenceIfAttributeDefined(BeanDefinitionBuilder builder, ElementSE element, StringSE attributeName, boolean emptyStringAllowed)
public static StringSE createElementDescription(ElementSE element)
element
- 要素。public static void configurePollerMetadata(ElementSE pollerElement, BeanDefinitionBuilder targetBuilder, ParserContext parserContext)
pollerElement
- 解析する "poller" 要素 targetBuilder
- 「トリガー」プロパティを期待するビルダー parserContext
- ターゲットビルダー向け parserContextpublic static StringSE getTextFromAttributeOrNestedElement(ElementSE element, StringSE name, ParserContext parserContext)
element
- DOM ノード name
- プロパティの名前 (属性または子要素)parserContext
- 現在のコンテキスト public static BeanComponentDefinition parseInnerHandlerDefinition(ElementSE element, ParserContext parserContext)
public static void configureHeaderMapper(ElementSE element, BeanDefinitionBuilder rootBuilder, ParserContext parserContext, ClassSE<?> headerMapperClass, StringSE replyHeaderValue)
element
- 要素。rootBuilder
- ルートビルダー。parserContext
- パーサーコンテキスト。headerMapperClass
- ヘッダーマッパークラス。replyHeaderValue
- 応答ヘッダー値。public static void configureHeaderMapper(ElementSE element, BeanDefinitionBuilder rootBuilder, ParserContext parserContext, BeanDefinitionBuilder headerMapperBuilder, @Nullable StringSE replyHeaderValueArg)
element
- 要素。rootBuilder
- ルートビルダー。parserContext
- パーサーコンテキスト。headerMapperBuilder
- ヘッダーマッパービルダー。replyHeaderValueArg
- 応答ヘッダー値。public static BeanDefinition configureTransactionAttributes(ElementSE txElement)
TransactionInterceptor
を構成します。例: このアドバイザーは、ポーリングタスクプロキシに適用されます。txElement
- トランザクション要素。AbstractPollingEndpoint
public static BeanDefinition configureTransactionAttributes(ElementSE txElement, boolean handleMessageAdvice)
TransactionInterceptor
または TransactionHandleMessageAdvice
を構成します。例: このアドバイザーは、ポーリングタスクプロキシに適用されます。txElement
- トランザクション要素。handleMessageAdvice
- TransactionHandleMessageAdvice
または通常の TransactionInterceptor
を使用するかどうかのフラグ AbstractPollingEndpoint
public static BeanDefinition configureTransactionDefinition(ElementSE txElement)
DefaultTransactionAttribute
を構成します。txElement
- トランザクション要素。public static void configureAndSetAdviceChainIfPresent(ElementSE adviceChainElement, ElementSE txElement, BeanDefinition parentBeanDefinition, ParserContext parserContext)
public static void configureAndSetAdviceChainIfPresent(ElementSE adviceChainElement, ElementSE txElement, boolean handleMessageAdvice, BeanDefinition parentBeanDefinition, ParserContext parserContext)
public static void configureAndSetAdviceChainIfPresent(ElementSE adviceChainElement, ElementSE txElement, BeanDefinition parentBeanDefinition, ParserContext parserContext, StringSE propertyName)
public static void configureAndSetAdviceChainIfPresent(ElementSE adviceChainElement, ElementSE txElement, boolean handleMessageAdvice, BeanDefinition parentBeanDefinition, ParserContext parserContext, StringSE propertyName)
public static ManagedList configureAdviceChain(ElementSE adviceChainElement, ElementSE txElement, BeanDefinition parentBeanDefinition, ParserContext parserContext)
public static ManagedList configureAdviceChain(ElementSE adviceChainElement, ElementSE txElement, boolean handleMessageAdvice, BeanDefinition parentBeanDefinition, ParserContext parserContext)
public static BeanDefinition createExpressionDefinitionFromValueOrExpression(StringSE valueElementName, StringSE expressionElementName, ParserContext parserContext, ElementSE element, boolean oneRequired)
public static BeanDefinition createExpressionDefIfAttributeDefined(StringSE expressionElementName, ElementSE element)
public static StringSE createDirectChannel(ElementSE element, ParserContext parserContext)
public static void checkAndConfigureFixedSubscriberChannel(ElementSE element, ParserContext parserContext, StringSE channelName, StringSE handlerBeanName)
public static void injectPropertyWithAdapter(StringSE beanRefAttribute, StringSE methodRefAttribute, StringSE expressionAttribute, StringSE beanProperty, StringSE adapterClass, ElementSE element, BeanDefinitionBuilder builder, BeanMetadataElement processor, ParserContext parserContext)
public static void injectConstructorWithAdapter(StringSE beanRefAttribute, StringSE methodRefAttribute, StringSE expressionAttribute, StringSE adapterClass, ElementSE element, BeanDefinitionBuilder builder, BeanMetadataElement processor, ParserContext parserContext)