diff --git a/org.springframework.integration/src/main/java/org/springframework/integration/aop/PublisherAnnotationAdvisor.java b/org.springframework.integration/src/main/java/org/springframework/integration/aop/PublisherAnnotationAdvisor.java index 6913a99309..df20aa2372 100644 --- a/org.springframework.integration/src/main/java/org/springframework/integration/aop/PublisherAnnotationAdvisor.java +++ b/org.springframework.integration/src/main/java/org/springframework/integration/aop/PublisherAnnotationAdvisor.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2007 the original author or authors. + * Copyright 2002-2008 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/org.springframework.integration/src/main/java/org/springframework/integration/channel/NullChannel.java b/org.springframework.integration/src/main/java/org/springframework/integration/channel/NullChannel.java index 594a67e61d..ff4915df3f 100644 --- a/org.springframework.integration/src/main/java/org/springframework/integration/channel/NullChannel.java +++ b/org.springframework.integration/src/main/java/org/springframework/integration/channel/NullChannel.java @@ -32,15 +32,11 @@ import org.springframework.integration.message.selector.MessageSelector; * * @author Mark Fisher */ -public class NullChannel implements MessageChannel { +public class NullChannel implements PollableChannel { private Log logger = LogFactory.getLog(this.getClass()); - public List> clear() { - return null; - } - /** * Always returns null. */ @@ -48,24 +44,22 @@ public class NullChannel implements MessageChannel { return null; } + public List> clear() { + return null; + } + public List> purge(MessageSelector selector) { return null; } - /** - * The channel name cannot be set. It is always null. - */ - public void setName(String name) { - } - - public Message receive() { + public Message receive() { if (logger.isDebugEnabled()) { logger.debug("receive called on null-channel"); } return null; } - public Message receive(long timeout) { + public Message receive(long timeout) { return this.receive(); }