public class BeanFactoryMessageChannelDestinationResolver extends Object implements DestinationResolver<MessageChannel>, org.springframework.beans.factory.BeanFactoryAware
Constructor and Description |
---|
BeanFactoryMessageChannelDestinationResolver()
Create a new instance of the
BeanFactoryMessageChannelDestinationResolver class. |
BeanFactoryMessageChannelDestinationResolver(org.springframework.beans.factory.BeanFactory beanFactory)
Create a new instance of the
BeanFactoryMessageChannelDestinationResolver class. |
Modifier and Type | Method and Description |
---|---|
MessageChannel |
resolveDestination(String name) |
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) |
public BeanFactoryMessageChannelDestinationResolver()
BeanFactoryMessageChannelDestinationResolver
class.
The BeanFactory to access must be set via setBeanFactory
.
This will happen automatically if this resolver is defined within an
ApplicationContext thereby receiving the callback upon initialization.
public BeanFactoryMessageChannelDestinationResolver(org.springframework.beans.factory.BeanFactory beanFactory)
BeanFactoryMessageChannelDestinationResolver
class.
Use of this constructor is redundant if this object is being created
by a Spring IoC container as the supplied BeanFactory
will be
replaced by the BeanFactory
that creates it (c.f. the
BeanFactoryAware
contract). So only use this constructor if you
are instantiating this object explicitly rather than defining a bean.
beanFactory
- the bean factory to be used to lookup MessageChannel
s.public MessageChannel resolveDestination(String name)
resolveDestination
in interface DestinationResolver<MessageChannel>
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException
setBeanFactory
in interface org.springframework.beans.factory.BeanFactoryAware
org.springframework.beans.BeansException