public abstract class IntegrationContextUtils
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ERROR_CHANNEL_BEAN_NAME |
static java.lang.String |
INTEGRATION_CONVERSION_SERVICE_BEAN_NAME |
static java.lang.String |
INTEGRATION_EVALUATION_CONTEXT_BEAN_NAME |
static java.lang.String |
INTEGRATION_GLOBAL_PROPERTIES_BEAN_NAME |
static java.lang.String |
INTEGRATION_HEADER_CHANNEL_REGISTRY_BEAN_NAME |
static java.lang.String |
METADATA_STORE_BEAN_NAME |
static java.lang.String |
NULL_CHANNEL_BEAN_NAME |
static java.lang.String |
TASK_SCHEDULER_BEAN_NAME |
| Constructor and Description |
|---|
IntegrationContextUtils() |
| Modifier and Type | Method and Description |
|---|---|
static org.springframework.core.convert.ConversionService |
getConversionService(org.springframework.beans.factory.BeanFactory beanFactory)
Return the
ConversionService bean whose name is "integrationConversionService" if available. |
static org.springframework.messaging.MessageChannel |
getErrorChannel(org.springframework.beans.factory.BeanFactory beanFactory)
Return the
MessageChannel bean whose name is "errorChannel". |
static org.springframework.expression.spel.support.StandardEvaluationContext |
getEvaluationContext(org.springframework.beans.factory.BeanFactory beanFactory)
Return the instance of
StandardEvaluationContext bean whose name is "integrationEvaluationContext" . |
static java.util.Properties |
getIntegrationProperties(org.springframework.beans.factory.BeanFactory beanFactory) |
static MetadataStore |
getMetadataStore(org.springframework.beans.factory.BeanFactory beanFactory)
Return the
MetadataStore bean whose name is "metadataStore". |
static org.springframework.scheduling.TaskScheduler |
getRequiredTaskScheduler(org.springframework.beans.factory.BeanFactory beanFactory)
Return the
TaskScheduler bean whose name is "taskScheduler". |
static org.springframework.scheduling.TaskScheduler |
getTaskScheduler(org.springframework.beans.factory.BeanFactory beanFactory)
Return the
TaskScheduler bean whose name is "taskScheduler" if available. |
public static final java.lang.String TASK_SCHEDULER_BEAN_NAME
public static final java.lang.String ERROR_CHANNEL_BEAN_NAME
public static final java.lang.String NULL_CHANNEL_BEAN_NAME
public static final java.lang.String METADATA_STORE_BEAN_NAME
public static final java.lang.String INTEGRATION_CONVERSION_SERVICE_BEAN_NAME
public static final java.lang.String INTEGRATION_EVALUATION_CONTEXT_BEAN_NAME
public static final java.lang.String INTEGRATION_HEADER_CHANNEL_REGISTRY_BEAN_NAME
public static final java.lang.String INTEGRATION_GLOBAL_PROPERTIES_BEAN_NAME
public static MetadataStore getMetadataStore(org.springframework.beans.factory.BeanFactory beanFactory)
MetadataStore bean whose name is "metadataStore".beanFactory - BeanFactory for lookup, must not be null.public static org.springframework.messaging.MessageChannel getErrorChannel(org.springframework.beans.factory.BeanFactory beanFactory)
MessageChannel bean whose name is "errorChannel".beanFactory - BeanFactory for lookup, must not be null.public static org.springframework.scheduling.TaskScheduler getTaskScheduler(org.springframework.beans.factory.BeanFactory beanFactory)
TaskScheduler bean whose name is "taskScheduler" if available.beanFactory - BeanFactory for lookup, must not be null.public static org.springframework.scheduling.TaskScheduler getRequiredTaskScheduler(org.springframework.beans.factory.BeanFactory beanFactory)
TaskScheduler bean whose name is "taskScheduler".beanFactory - BeanFactory for lookup, must not be null.java.lang.IllegalStateException - if no such bean is availablepublic static org.springframework.core.convert.ConversionService getConversionService(org.springframework.beans.factory.BeanFactory beanFactory)
ConversionService bean whose name is "integrationConversionService" if available.beanFactory - BeanFactory for lookup, must not be null.public static org.springframework.expression.spel.support.StandardEvaluationContext getEvaluationContext(org.springframework.beans.factory.BeanFactory beanFactory)
StandardEvaluationContext bean whose name is "integrationEvaluationContext" .beanFactory - BeanFactory for lookup, must not be null.public static java.util.Properties getIntegrationProperties(org.springframework.beans.factory.BeanFactory beanFactory)
INTEGRATION_GLOBAL_PROPERTIES_BEAN_NAME
bean from provided #beanFactory, which represents the merged
properties values from all 'META-INF/spring.integration.default.properties'
and 'META-INF/spring.integration.properties'.
Or user-defined Properties bean.
May return only IntegrationProperties.defaults() if there is no
INTEGRATION_GLOBAL_PROPERTIES_BEAN_NAME bean within
provided #beanFactory or provided #beanFactory is null.