Moved ChannelResolver and BeanFactoryChannelResolver into the 'org.springframework.integration.channel' package.

This commit is contained in:
Mark Fisher
2008-10-12 18:17:08 +00:00
parent b34e416093
commit 8301d9b3a4
8 changed files with 10 additions and 10 deletions

View File

@@ -14,13 +14,11 @@
* limitations under the License.
*/
package org.springframework.integration.router;
package org.springframework.integration.channel;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.BeanFactoryAware;
import org.springframework.integration.channel.ChannelResolutionException;
import org.springframework.integration.channel.MessageChannel;
import org.springframework.util.Assert;
/**
@@ -41,7 +39,7 @@ public class BeanFactoryChannelResolver implements ChannelResolver, BeanFactoryA
* Create a new instance of the {@link BeanFactoryChannelResolver} class.
* <p>The BeanFactory to access must be set via <code>setBeanFactory</code>.
* This will happen automatically if this resolver is defined within an
* ApplicationContext thereby receiving the callback.
* ApplicationContext thereby receiving the callback upon initialization.
* @see #setBeanFactory
*/
public BeanFactoryChannelResolver() {

View File

@@ -14,9 +14,8 @@
* limitations under the License.
*/
package org.springframework.integration.router;
package org.springframework.integration.channel;
import org.springframework.integration.channel.MessageChannel;
/**
* Strategy for resolving a name to a {@link MessageChannel}.
@@ -28,6 +27,6 @@ public interface ChannelResolver {
/**
* Return the MessageChannel for the given name.
*/
MessageChannel resolveChannelName(String name);
MessageChannel resolveChannelName(String channelName);
}

View File

@@ -20,9 +20,9 @@ import java.lang.reflect.Method;
import org.springframework.beans.factory.ListableBeanFactory;
import org.springframework.integration.annotation.Router;
import org.springframework.integration.channel.BeanFactoryChannelResolver;
import org.springframework.integration.channel.MessageChannel;
import org.springframework.integration.message.MessageConsumer;
import org.springframework.integration.router.BeanFactoryChannelResolver;
import org.springframework.integration.router.MethodInvokingRouter;
import org.springframework.util.Assert;
import org.springframework.util.StringUtils;

View File

@@ -21,7 +21,7 @@ import org.w3c.dom.Element;
import org.springframework.beans.factory.support.BeanDefinitionBuilder;
import org.springframework.beans.factory.support.BeanDefinitionReaderUtils;
import org.springframework.beans.factory.xml.ParserContext;
import org.springframework.integration.router.BeanFactoryChannelResolver;
import org.springframework.integration.channel.BeanFactoryChannelResolver;
import org.springframework.integration.router.MethodInvokingRouter;
import org.springframework.util.Assert;
import org.springframework.util.StringUtils;

View File

@@ -22,6 +22,8 @@ import java.util.Collection;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.BeanFactoryAware;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.integration.channel.BeanFactoryChannelResolver;
import org.springframework.integration.channel.ChannelResolver;
import org.springframework.integration.channel.MessageChannel;
import org.springframework.integration.message.Message;
import org.springframework.integration.message.MessagingException;

View File

@@ -23,6 +23,7 @@ import java.util.Collection;
import java.util.List;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.integration.channel.ChannelResolver;
import org.springframework.integration.channel.MessageChannel;
import org.springframework.integration.message.Message;
import org.springframework.integration.message.MessageMappingMethodInvoker;

View File

@@ -19,7 +19,6 @@ package org.springframework.integration.channel;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import org.springframework.integration.router.ChannelResolver;
import org.springframework.util.Assert;
/**

View File

@@ -29,6 +29,7 @@ import org.junit.Test;
import org.springframework.integration.annotation.Header;
import org.springframework.integration.channel.ChannelRegistry;
import org.springframework.integration.channel.ChannelRegistryAware;
import org.springframework.integration.channel.ChannelResolver;
import org.springframework.integration.channel.TestChannelResolver;
import org.springframework.integration.channel.MessageChannel;
import org.springframework.integration.channel.QueueChannel;