|
Spring Integration | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.integration.channel.registry.LocalChannelRegistry
public class LocalChannelRegistry
A simple implementation of ChannelRegistry
for in-process use. For inbound and
outbound, creates a DirectChannel
and bridges the passed
MessageChannel
to the channel which is registered in the given application
context. If that channel does not yet exist, it will be created. For tap, it adds a
WireTap
for an inbound channel whose name matches the one provided. If no such
inbound channel exists at the time of the method invocation, it will throw an
Exception. Otherwise the provided channel instance will receive messages from the wire
tap on that inbound channel.
Constructor Summary | |
---|---|
LocalChannelRegistry()
|
Method Summary | ||
---|---|---|
void |
afterPropertiesSet()
|
|
protected BridgeHandler |
bridge(SubscribableChannel from,
MessageChannel to)
|
|
protected
|
createSharedChannel(java.lang.String name,
java.lang.Class<T> requiredType)
|
|
void |
inbound(java.lang.String name,
MessageChannel channel)
Looks up or creates a DirectChannel with the given name and creates a bridge from that channel to the provided channel instance. |
|
protected
|
lookupOrCreateSharedChannel(java.lang.String name,
java.lang.Class<T> requiredType)
|
|
void |
outbound(java.lang.String name,
MessageChannel channel)
Looks up or creates a DirectChannel with the given name and creates a bridge to that channel from the provided channel instance. |
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
|
|
void |
tap(java.lang.String name,
MessageChannel channel)
Looks up a wiretap for the inbound channel with the given name and creates a bridge from that wiretap's output channel to the provided channel instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LocalChannelRegistry()
Method Detail |
---|
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
public void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
java.lang.Exception
public void inbound(java.lang.String name, MessageChannel channel)
inbound
in interface ChannelRegistry
name
- the logical identity of the message sourcechannel
- the channel bound as a consumerpublic void outbound(java.lang.String name, MessageChannel channel)
outbound
in interface ChannelRegistry
name
- the logical identity of the message targetchannel
- the channel bound as a producerpublic void tap(java.lang.String name, MessageChannel channel)
tap
in interface ChannelRegistry
name
- the registered namechannel
- the channel that will receive messages from the tapprotected <T extends AbstractMessageChannel> T lookupOrCreateSharedChannel(java.lang.String name, java.lang.Class<T> requiredType)
protected <T extends AbstractMessageChannel> T createSharedChannel(java.lang.String name, java.lang.Class<T> requiredType)
protected BridgeHandler bridge(SubscribableChannel from, MessageChannel to)
|
Spring Integration | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |