Class ChannelUtils
java.lang.Object
org.springframework.integration.channel.ChannelUtils
public final class ChannelUtils
extends java.lang.Object
Channel utilities.
- Since:
- 5.2
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringMESSAGE_PUBLISHING_ERROR_HANDLER_BEAN_NAME -
Method Summary
Modifier and Type Method Description static org.springframework.util.ErrorHandlergetErrorHandler(org.springframework.beans.factory.BeanFactory beanFactory)Obtain anErrorHandlerregistered with the "integrationMessagePublishingErrorHandler" bean name.
-
Field Details
-
MESSAGE_PUBLISHING_ERROR_HANDLER_BEAN_NAME
public static final java.lang.String MESSAGE_PUBLISHING_ERROR_HANDLER_BEAN_NAME- See Also:
- Constant Field Values
-
-
Method Details
-
getErrorHandler
public static org.springframework.util.ErrorHandler getErrorHandler(org.springframework.beans.factory.BeanFactory beanFactory)Obtain anErrorHandlerregistered with the "integrationMessagePublishingErrorHandler" bean name. By default resolves to theMessagePublishingErrorHandlerwith the "integrationChannelResolver"DestinationResolverbean.- Parameters:
beanFactory- BeanFactory for lookup, must not be null.- Returns:
- the instance of
ErrorHandlerbean whose name is "integrationMessagePublishingErrorHandler".
-