Class JmsInboundChannelAdapterSpec.JmsInboundChannelSpecTemplateAware
java.lang.Object
org.springframework.integration.dsl.IntegrationComponentSpec<JmsInboundChannelAdapterSpec.JmsInboundChannelSpecTemplateAware, JmsDestinationPollingSource>
org.springframework.integration.dsl.MessageSourceSpec<JmsInboundChannelAdapterSpec.JmsInboundChannelSpecTemplateAware, JmsDestinationPollingSource>
org.springframework.integration.jms.dsl.JmsInboundChannelAdapterSpec<JmsInboundChannelAdapterSpec.JmsInboundChannelSpecTemplateAware>
org.springframework.integration.jms.dsl.JmsInboundChannelAdapterSpec.JmsInboundChannelSpecTemplateAware
- All Implemented Interfaces:
DisposableBean, FactoryBean<JmsDestinationPollingSource>, InitializingBean, Lifecycle, Phased, SmartLifecycle, ComponentsRegistration
- Enclosing class:
JmsInboundChannelAdapterSpec<S extends JmsInboundChannelAdapterSpec<S>>
public static class JmsInboundChannelAdapterSpec.JmsInboundChannelSpecTemplateAware
extends JmsInboundChannelAdapterSpec<JmsInboundChannelAdapterSpec.JmsInboundChannelSpecTemplateAware>
implements ComponentsRegistration
A
JmsTemplate-based JmsInboundChannelAdapterSpec extension.- Since:
- 5.0
- Author:
- Artem Bilan
-
Nested Class Summary
Nested classes/interfaces inherited from class JmsInboundChannelAdapterSpec
JmsInboundChannelAdapterSpec.JmsInboundChannelSpecTemplateAware -
Field Summary
Fields inherited from class JmsInboundChannelAdapterSpec
jmsTemplateSpecFields inherited from class IntegrationComponentSpec
logger, PARSER, targetFields inherited from interface FactoryBean
OBJECT_TYPE_ATTRIBUTEFields inherited from interface SmartLifecycle
DEFAULT_PHASE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJmsInboundChannelSpecTemplateAware(ConnectionFactory connectionFactory) -
Method Summary
Modifier and TypeMethodDescriptionconfigureJmsTemplate(Consumer<JmsTemplateSpec> configurer) Configure the channel adapter to use the template specification created by invoking theConsumercallback, passing in aJmsTemplateSpec.Methods inherited from class JmsInboundChannelAdapterSpec
destination, destination, headerMapper, messageSelectorMethods inherited from class MessageSourceSpec
messageHeadersMethods inherited from class IntegrationComponentSpec
_this, afterPropertiesSet, destroy, doGet, getId, getObject, getObjectType, getPhase, id, isAutoStartup, isRunning, start, stop, stopMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface FactoryBean
isSingletonMethods inherited from interface SmartLifecycle
isPauseable
-
Constructor Details
-
JmsInboundChannelSpecTemplateAware
-
-
Method Details
-
configureJmsTemplate
public JmsInboundChannelAdapterSpec.JmsInboundChannelSpecTemplateAware configureJmsTemplate(Consumer<JmsTemplateSpec> configurer) Configure the channel adapter to use the template specification created by invoking theConsumercallback, passing in aJmsTemplateSpec.- Parameters:
configurer- the configurer.- Returns:
- the spec.
-
getComponentsToRegister
- Specified by:
getComponentsToRegisterin interfaceComponentsRegistration
-