public abstract class IntegrationContextUtils extends Object
Constructor and Description |
---|
IntegrationContextUtils() |
Modifier and Type | Method and Description |
---|---|
static BeanDefinition |
getBeanDefinition(String name,
ConfigurableListableBeanFactory beanFactory)
Return a
BeanDefinition with the given name,
obtained from the given BeanFactory or one of its parents. |
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 SimpleEvaluationContext |
getSimpleEvaluationContext(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 ERROR_LOGGER_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_SIMPLE_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 MERGED_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 final String TO_STRING_FRIENDLY_JSON_NODE_TO_STRING_CONVERTER_BEAN_NAME
public static final String INTEGRATION_LIFECYCLE_ROLE_CONTROLLER
public static final String INTEGRATION_GRAPH_SERVER_BEAN_NAME
public static final String SPEL_PROPERTY_ACCESSOR_REGISTRAR_BEAN_NAME
public static final String ARGUMENT_RESOLVER_MESSAGE_CONVERTER_BEAN_NAME
public static final String DISPOSABLES_BEAN_NAME
public static final String MESSAGE_HANDLER_FACTORY_BEAN_NAME
public static final String LIST_MESSAGE_HANDLER_FACTORY_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 SimpleEvaluationContext getSimpleEvaluationContext(BeanFactory beanFactory)
beanFactory
- BeanFactory for lookup, must not be null.SimpleEvaluationContext
bean whose name is
"integrationSimpleEvaluationContext".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.public static BeanDefinition getBeanDefinition(String name, ConfigurableListableBeanFactory beanFactory)
BeanDefinition
with the given name,
obtained from the given BeanFactory
or one of its parents.name
- the bean name to returnbeanFactory
- the ConfigurableListableBeanFactory
to travers.BeanDefinition
for a given nameNoSuchBeanDefinitionException
- if a BeanDefinition
is not found