S - the target MessageChannelSpec implementation type.C - the target AbstractMessageChannel implementation type.public abstract class MessageChannelSpec<S extends MessageChannelSpec<S,C>,C extends org.springframework.integration.channel.AbstractMessageChannel> extends IntegrationComponentSpec<S,C> implements ComponentsRegistration
| Modifier and Type | Field and Description |
|---|---|
protected C |
channel |
id, logger, PARSER, target| Constructor and Description |
|---|
MessageChannelSpec() |
| Modifier and Type | Method and Description |
|---|---|
S |
datatype(java.lang.Class<?>... datatypes) |
protected C |
doGet() |
java.util.Collection<java.lang.Object> |
getComponentsToRegister() |
protected S |
id(java.lang.String id)
Configure the component identifier.
|
S |
interceptor(org.springframework.messaging.support.ChannelInterceptor... interceptors) |
S |
messageConverter(org.springframework.messaging.converter.MessageConverter messageConverter) |
S |
wireTap(org.springframework.messaging.MessageChannel wireTapChannel)
Populate the
Wire Tap EI Pattern specific
ChannelInterceptor implementation. |
S |
wireTap(java.lang.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, get, getId, getObject, getObjectType, isSingletonprotected C extends org.springframework.integration.channel.AbstractMessageChannel channel
protected S id(java.lang.String id)
IntegrationComponentSpecbeanName to register the
bean in the application context for this component.id in class IntegrationComponentSpec<S extends MessageChannelSpec<S,C>,C extends org.springframework.integration.channel.AbstractMessageChannel>id - the id.public S datatype(java.lang.Class<?>... datatypes)
public S interceptor(org.springframework.messaging.support.ChannelInterceptor... interceptors)
public S wireTap(java.lang.String wireTapChannel)
Wire Tap EI Pattern specific
ChannelInterceptor implementation.wireTapChannel - the MessageChannel bean name to wire-tap.MessageChannelSpec.WireTapSpecpublic S wireTap(org.springframework.messaging.MessageChannel wireTapChannel)
Wire Tap EI Pattern specific
ChannelInterceptor implementation.wireTapChannel - the MessageChannel instance to wire-tap.MessageChannelSpec.WireTapSpecpublic S wireTap(WireTapSpec wireTapSpec)
Wire Tap EI Pattern specific
ChannelInterceptor implementation.wireTapSpec - the WireTapSpec to build WireTap instance.MessageChannelSpec.WireTappublic S messageConverter(org.springframework.messaging.converter.MessageConverter messageConverter)
public java.util.Collection<java.lang.Object> getComponentsToRegister()
getComponentsToRegister in interface ComponentsRegistrationprotected C doGet()
doGet in class IntegrationComponentSpec<S extends MessageChannelSpec<S,C>,C extends org.springframework.integration.channel.AbstractMessageChannel>