public abstract class IntegrationContextUtils extends Object
Constructor and Description |
---|
IntegrationContextUtils() |
Modifier and Type | Method and Description |
---|---|
static MessageChannel |
getErrorChannel(BeanFactory beanFactory) |
static StandardEvaluationContext |
getEvaluationContext(BeanFactory beanFactory) |
static Properties |
getIntegrationProperties(BeanFactory beanFactory) |
static MetadataStore |
getMetadataStore(BeanFactory beanFactory) |
static TaskScheduler |
getRequiredTaskScheduler(BeanFactory beanFactory) |
static TaskScheduler |
getTaskScheduler(BeanFactory beanFactory) |
public static final String TASK_SCHEDULER_BEAN_NAME
public static final String ERROR_CHANNEL_BEAN_NAME
public static final String NULL_CHANNEL_BEAN_NAME
public static final String METADATA_STORE_BEAN_NAME
public static final String CONVERTER_REGISTRAR_BEAN_NAME
public static final String INTEGRATION_EVALUATION_CONTEXT_BEAN_NAME
public static final String INTEGRATION_HEADER_CHANNEL_REGISTRY_BEAN_NAME
public static final String INTEGRATION_GLOBAL_PROPERTIES_BEAN_NAME
public static final String CHANNEL_INITIALIZER_BEAN_NAME
public static final String AUTO_CREATE_CHANNEL_CANDIDATES_BEAN_NAME
public static final String DEFAULT_CONFIGURING_POSTPROCESSOR_BEAN_NAME
public static final String MESSAGING_ANNOTATION_POSTPROCESSOR_NAME
public static final String PUBLISHER_ANNOTATION_POSTPROCESSOR_NAME
public static final String INTEGRATION_CONFIGURATION_POST_PROCESSOR_BEAN_NAME
public static final String INTEGRATION_MESSAGE_HISTORY_CONFIGURER_BEAN_NAME
public static final String INTEGRATION_DATATYPE_CHANNEL_MESSAGE_CONVERTER_BEAN_NAME
public static final String INTEGRATION_FIXED_SUBSCRIBER_CHANNEL_BPP_BEAN_NAME
public static final String GLOBAL_CHANNEL_INTERCEPTOR_PROCESSOR_BEAN_NAME
public static MetadataStore getMetadataStore(BeanFactory beanFactory)
beanFactory
- BeanFactory for lookup, must not be null.MetadataStore
bean whose name is "metadataStore".public static MessageChannel getErrorChannel(BeanFactory beanFactory)
beanFactory
- BeanFactory for lookup, must not be null.MessageChannel
bean whose name is "errorChannel".public static TaskScheduler getTaskScheduler(BeanFactory beanFactory)
beanFactory
- BeanFactory for lookup, must not be null.TaskScheduler
bean whose name is "taskScheduler" if available.public static TaskScheduler getRequiredTaskScheduler(BeanFactory beanFactory)
beanFactory
- BeanFactory for lookup, must not be null.TaskScheduler
bean whose name is "taskScheduler".IllegalStateException
- if no such bean is availablepublic static StandardEvaluationContext getEvaluationContext(BeanFactory beanFactory)
beanFactory
- BeanFactory for lookup, must not be null.StandardEvaluationContext
bean whose name is "integrationEvaluationContext" .public static Properties getIntegrationProperties(BeanFactory beanFactory)
beanFactory
- The bean factory.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.