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 |
logger, PARSER, targetDEFAULT_PHASE| Modifier | Constructor and Description |
|---|---|
protected |
MessageChannelSpec() |
| Modifier and Type | Method and Description |
|---|---|
S |
datatype(Class<?>... datatypes) |
protected C |
doGet() |
Map<Object,String> |
getComponentsToRegister() |
protected S |
id(String id)
Configure the component identifier.
|
S |
interceptor(ChannelInterceptor... interceptors) |
S |
messageConverter(MessageConverter messageConverter) |
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, isAutoStartup, isRunning, start, stop, stopafterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingletonprotected C extends AbstractMessageChannel channel
protected S id(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 AbstractMessageChannel>id - the id.public S interceptor(ChannelInterceptor... interceptors)
public S wireTap(String wireTapChannel)
Wire Tap EI Pattern specific
ChannelInterceptor implementation.wireTapChannel - the MessageChannel bean name to wire-tap.MessageChannelSpec.WireTapSpecpublic S wireTap(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(MessageConverter messageConverter)
public Map<Object,String> getComponentsToRegister()
getComponentsToRegister in interface ComponentsRegistrationprotected C doGet()
doGet in class IntegrationComponentSpec<S extends MessageChannelSpec<S,C>,C extends AbstractMessageChannel>