public abstract class IntegrationObjectSupport extends ObjectSE implements BeanNameAware, NamedComponent, ApplicationContextAware, BeanFactoryAware, InitializingBean, ExpressionCapable
TaskScheduler および ConversionService インスタンスへの便利なアクセスを提供する基本クラス。これは、内部フレームワークコンポーネントの基本クラスとして使用することを目的としていますが、統合フレームワークに基づいて構築されたコードは、コンテキストとの緊密な結合を必要とせず、標準の依存性注入に依存する必要があります。
| 修飾子と型 | フィールドと説明 |
|---|---|
protected static ExpressionParser | EXPRESSION_PARSER |
protected LogAccessor | logger サブクラスで利用可能なロガー |
| コンストラクターと説明 |
|---|
IntegrationObjectSupport() |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, waitSE, waitSE, waitSEprotected static final ExpressionParser EXPRESSION_PARSER
protected final LogAccessor logger
public final void setBeanName(StringSE beanName)
BeanNameAware 内の setBeanName public StringSE getBeanName()
NamedComponent 内の getBeanName public StringSE getComponentName()
componentName フィールドで識別されるこのコンポーネントの名前を返します。componentName が設定されていない場合、このメソッドはデフォルトでこのコンポーネントの 'beanName' になります。NamedComponent 内の getComponentName public void setComponentName(StringSE componentName)
componentName - コンポーネント名。public StringSE getComponentType()
NamedComponent 内の getComponentType public StringSE getBeanDescription()
public void setBeanFactory(BeanFactory beanFactory)
BeanFactoryAware 内の setBeanFactory public void setApplicationContext(ApplicationContext applicationContext) throws BeansException
ApplicationContextAware 内の setApplicationContext BeansExceptionpublic void setChannelResolver(DestinationResolver<MessageChannel> channelResolver)
DestinationResolver 戦略を指定します。デフォルトは BeanFactoryChannelResolver です。channelResolver - チャネルリゾルバー。public Expression getExpression()
ExpressionCapableExpressionCapable 内の getExpression public final void setPrimaryExpression(Expression expression)
expression - 表現。public final void afterPropertiesSet()
InitializingBean 内の afterPropertiesSet protected void onInit()
protected boolean isInitialized()
protected BeanFactory getBeanFactory()
public void setTaskScheduler(TaskScheduler taskScheduler)
TaskScheduler を構成します。提供されていない場合は、Spring Integration インフラストラクチャによって提供されるアプリケーションコンテキストのグローバル taskScheduler Bean にフォールバックします。taskScheduler - 使用する TaskScheduler。getTaskScheduler()protected TaskScheduler getTaskScheduler()
protected DestinationResolver<MessageChannel> getChannelResolver()
public ConversionService getConversionService()
protected void setConversionService(ConversionService conversionService)
public StringSE getApplicationContextId()
ApplicationContext が使用可能な場合、ApplicationContext.getId() を返します。protected ApplicationContext getApplicationContext()
protected PropertiesSE getIntegrationProperties()
IntegrationContextUtils.getIntegrationProperties(BeanFactory)protected MessageBuilderFactory getMessageBuilderFactory()
public void setMessageBuilderFactory(MessageBuilderFactory messageBuilderFactory)
protected <T> T getIntegrationProperty(StringSE key, ClassSE<T> tClass)
T - プロパティの予想される型。key - 統合プロパティ。tClass - Integration プロパティの値を変換するクラス。public StringSE toString()
ObjectSE の toStringSE @Nullable public static <T> T extractTypeIfPossible(@Nullable ObjectSE targetObject, ClassSE<T> expectedType)
public static UUIDSE generateId()