public class BeanFactoryMessageChannelDestinationResolver extends Object implements DestinationResolver<MessageChannel>, org.springframework.beans.factory.BeanFactoryAware
DestinationResolver that interprets a destination
name as the bean name of a MessageChannel and looks up the bean in
the configured BeanFactory.| Constructor and Description |
|---|
BeanFactoryMessageChannelDestinationResolver()
A default constructor that can be used when the resolver itself is configured
as a Spring bean and will have the
BeanFactory injected as a result
of ing having implemented BeanFactoryAware. |
BeanFactoryMessageChannelDestinationResolver(org.springframework.beans.factory.BeanFactory beanFactory)
A constructor that accepts a
BeanFactory useful if instantiating this
resolver manually rather than having it defined as a Spring-managed bean. |
| Modifier and Type | Method and Description |
|---|---|
MessageChannel |
resolveDestination(String name)
Resolve the given destination name.
|
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) |
public BeanFactoryMessageChannelDestinationResolver()
BeanFactory injected as a result
of ing having implemented BeanFactoryAware.public BeanFactoryMessageChannelDestinationResolver(org.springframework.beans.factory.BeanFactory beanFactory)
BeanFactory useful if instantiating this
resolver manually rather than having it defined as a Spring-managed bean.beanFactory - the bean factory to perform lookups againstpublic void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAwarepublic MessageChannel resolveDestination(String name)
DestinationResolverresolveDestination in interface DestinationResolver<MessageChannel>name - the destination name to resolvenull