From 3bc36dd96bc8d969c3f3d2f757defbaa02f8fe3f Mon Sep 17 00:00:00 2001 From: Mark Fisher Date: Fri, 11 Dec 2009 16:59:38 +0000 Subject: [PATCH] javadoc --- .../channel/PublishSubscribeChannel.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/org.springframework.integration/src/main/java/org/springframework/integration/channel/PublishSubscribeChannel.java b/org.springframework.integration/src/main/java/org/springframework/integration/channel/PublishSubscribeChannel.java index 45131a9e20..3e0869c641 100644 --- a/org.springframework.integration/src/main/java/org/springframework/integration/channel/PublishSubscribeChannel.java +++ b/org.springframework.integration/src/main/java/org/springframework/integration/channel/PublishSubscribeChannel.java @@ -60,6 +60,18 @@ public class PublishSubscribeChannel extends AbstractSubscribableChannel impleme } + /** + * Provide an {@link ErrorHandler} strategy for handling Exceptions that + * occur downstream from this channel. This will only be applied if + * a TaskExecutor has been configured to dispatch the Messages for this + * channel. Otherwise, Exceptions will be thrown directly within the + * sending Thread. If no ErrorHandler is provided, and this channel does + * delegate its dispatching to a TaskExecutor, the default strategy is + * a {@link MessagePublishingErrorHandler} that sends error messages to + * the failed request Message's error channel header if available or to + * the default 'errorChannel' otherwise. + * @see #PublishSubscribeChannel(TaskExecutor) + */ public void setErrorHandler(ErrorHandler errorHandler) { this.errorHandler = errorHandler; } @@ -88,6 +100,9 @@ public class PublishSubscribeChannel extends AbstractSubscribableChannel impleme this.getDispatcher().setApplySequence(applySequence); } + /** + * Callback method for the {@link BeanFactoryAware} interface. + */ public void setBeanFactory(BeanFactory beanFactory) { if (this.taskExecutor != null) { if (!(this.taskExecutor instanceof ErrorHandlingTaskExecutor)) {