|
Spring Integration | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.integration.support.channel.BeanFactoryChannelResolver
public class BeanFactoryChannelResolver
ChannelResolver
implementation based on a Spring BeanFactory
.
Will lookup Spring managed beans identified by bean name,
expecting them to be of type MessageChannel
.
BeanFactory
Constructor Summary | |
---|---|
BeanFactoryChannelResolver()
Create a new instance of the BeanFactoryChannelResolver class. |
|
BeanFactoryChannelResolver(org.springframework.beans.factory.BeanFactory beanFactory)
Create a new instance of the BeanFactoryChannelResolver class. |
Method Summary | |
---|---|
MessageChannel |
resolveChannelName(java.lang.String name)
Return the MessageChannel for the given name. |
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BeanFactoryChannelResolver()
BeanFactoryChannelResolver
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.
setBeanFactory(org.springframework.beans.factory.BeanFactory)
public BeanFactoryChannelResolver(org.springframework.beans.factory.BeanFactory beanFactory)
BeanFactoryChannelResolver
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.Method Detail |
---|
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
setBeanFactory
in interface org.springframework.beans.factory.BeanFactoryAware
public MessageChannel resolveChannelName(java.lang.String name)
ChannelResolver
resolveChannelName
in interface ChannelResolver
|
Spring Integration | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |