public abstract class AbstractMessageBusBinderPlugin extends AbstractPlugin
Plugin
that has common implementation methods to bind/unbind Module
's message producers and
consumers to/from MessageBus
.Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
JOB_CHANNEL_PREFIX |
protected MessageBus |
messageBus |
protected static java.lang.String |
MODULE_INPUT_CHANNEL |
protected static java.lang.String |
MODULE_OUTPUT_CHANNEL |
protected static java.lang.String |
TAP_CHANNEL_PREFIX |
protected static java.lang.String |
TOPIC_CHANNEL_PREFIX |
logger, PLUGIN_CONTEXT_CONFIG_ROOT
Constructor and Description |
---|
AbstractMessageBusBinderPlugin(MessageBus messageBus) |
Modifier and Type | Method and Description |
---|---|
protected void |
bindConsumerAndProducers(Module module)
Bind input/output channel of the module's message consumer/producers to
MessageBus 's message
source/target entities. |
protected abstract java.lang.String |
getInputChannelName(Module module) |
int |
getOrder() |
protected abstract java.lang.String |
getOutputChannelName(Module module) |
protected abstract boolean |
isAliasedInput(Module module) |
protected abstract boolean |
isAliasedOutput(Module module) |
protected void |
unbindConsumerAndProducers(Module module)
Unbind input/output channel of the module's message consumer/producers from
MessageBus 's message
source/target entities. |
beforeShutdown, getApplicationContext, postProcessModule, preProcessModule, removeModule, setApplicationContext, supports
protected static final java.lang.String MODULE_INPUT_CHANNEL
protected static final java.lang.String MODULE_OUTPUT_CHANNEL
protected static final java.lang.String TAP_CHANNEL_PREFIX
protected static final java.lang.String TOPIC_CHANNEL_PREFIX
protected static final java.lang.String JOB_CHANNEL_PREFIX
protected final MessageBus messageBus
public AbstractMessageBusBinderPlugin(MessageBus messageBus)
protected final void bindConsumerAndProducers(Module module)
MessageBus
's message
source/target entities.module
- the module whose consumer and producers to bind to the MessageBus
.protected abstract java.lang.String getInputChannelName(Module module)
protected abstract java.lang.String getOutputChannelName(Module module)
protected abstract boolean isAliasedInput(Module module)
protected abstract boolean isAliasedOutput(Module module)
protected final void unbindConsumerAndProducers(Module module)
MessageBus
's message
source/target entities.module
- the module whose consumer and producers to unbind from the MessageBus
.public int getOrder()
getOrder
in interface org.springframework.core.Ordered
getOrder
in class AbstractPlugin