S
- the target MessageChannelSpec
implementation type.C
- the target AbstractMessageChannel
implementation type.public abstract class MessageChannelSpec<S extends MessageChannelSpec<S,C>,C extends AbstractMessageChannel> extends IntegrationComponentSpec<S,C> implements ComponentsRegistration
Modifier and Type | Field and Description |
---|---|
protected C |
channel |
PARSER, target
logger
DEFAULT_PHASE
OBJECT_TYPE_ATTRIBUTE
Modifier | Constructor and Description |
---|---|
protected |
MessageChannelSpec() |
Modifier and Type | Method and Description |
---|---|
S |
datatype(Class<?>... types) |
protected C |
doGet() |
Map<Object,String> |
getComponentsToRegister() |
S |
interceptor(ChannelInterceptor... interceptorArray) |
S |
messageConverter(MessageConverter converter) |
S |
wireTap(MessageChannel wireTapChannel)
Populate the
Wire Tap EI Pattern specific
ChannelInterceptor implementation. |
S |
wireTap(String wireTapChannel)
Populate the
Wire Tap EI Pattern specific
ChannelInterceptor implementation. |
S |
wireTap(WireTapSpec wireTapSpec)
Populate the
Wire Tap EI Pattern specific
ChannelInterceptor implementation. |
_this, createInstance, destroyInstance, get, getId, getObjectType, getPhase, id, isAutoStartup, isRunning, start, stop, stop
afterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
protected C extends AbstractMessageChannel channel
public S interceptor(ChannelInterceptor... interceptorArray)
public S wireTap(String wireTapChannel)
Wire Tap
EI Pattern specific
ChannelInterceptor
implementation.wireTapChannel
- the MessageChannel
bean name to wire-tap.MessageChannelSpec
.WireTapSpec
public S wireTap(MessageChannel wireTapChannel)
Wire Tap
EI Pattern specific
ChannelInterceptor
implementation.wireTapChannel
- the MessageChannel
instance to wire-tap.MessageChannelSpec
.WireTapSpec
public S wireTap(WireTapSpec wireTapSpec)
Wire Tap
EI Pattern specific
ChannelInterceptor
implementation.wireTapSpec
- the WireTapSpec
to build WireTap
instance.MessageChannelSpec
.WireTap
public S messageConverter(MessageConverter converter)
public Map<Object,String> getComponentsToRegister()
getComponentsToRegister
in interface ComponentsRegistration
protected C doGet()
doGet
in class IntegrationComponentSpec<S extends MessageChannelSpec<S,C>,C extends AbstractMessageChannel>