/** * Configure the channel adapter to use the template specification created by invoking the * {@link Consumer} callback, passing in a {@link JmsTemplateSpec}. * @param configurer the configurer. * @return the spec. */ public JmsInboundChannelSpecTemplateAware configureJmsTemplate(Consumer<JmsTemplateSpec> configurer) { Assert.notNull(configurer, "'configurer' must not be null"); configurer.accept(this.jmsTemplateSpec); return _this(); }
public JmsInboundGatewayListenerContainerSpec<S, C> configureListenerContainer( Consumer<JmsListenerContainerSpec<S, C>> configurer) { Assert.notNull(configurer, "'configurer' must not be null"); configurer.accept(this.spec); return _this(); }
/** * Configure a listener container by invoking the {@link Consumer} callback, with a * {@link KafkaMessageListenerContainerSpec} argument. * @param configurer the configurer Java 8 Lambda. * @return the spec. */ public KafkaMessageDrivenChannelAdapterListenerContainerSpec<K, V> configureListenerContainer( Consumer<KafkaMessageListenerContainerSpec<K, V>> configurer) { Assert.notNull(configurer, "'configurer' must not be null"); configurer.accept(this.spec); return _this(); }
public JmsInboundGatewayListenerContainerSpec<S, C> configureListenerContainer( Consumer<JmsListenerContainerSpec<S, C>> configurer) { Assert.notNull(configurer, "'configurer' must not be null"); configurer.accept(this.spec); return _this(); }
/** * Configure a listener container by invoking the {@link Consumer} callback, with a * {@link JmsListenerContainerSpec} argument. * @param configurer the configurer. * @return the spec. */ public JmsMessageDrivenChannelAdapterListenerContainerSpec<S, C> configureListenerContainer( Consumer<JmsListenerContainerSpec<S, C>> configurer) { Assert.notNull(configurer, "'configurer' must not be null"); configurer.accept(this.spec); return _this(); }
public JmsOutboundChannelSpecTemplateAware configureJmsTemplate(Consumer<JmsTemplateSpec> configurer) { Assert.notNull(configurer, "'configurer' must not be null"); configurer.accept(this.jmsTemplateSpec); return _this(); }
/** * Configure a listener container by invoking the {@link Consumer} callback, with a * {@link JmsListenerContainerSpec} argument. * @param configurer the configurer. * @return the spec. */ public JmsMessageDrivenChannelAdapterListenerContainerSpec<S, C> configureListenerContainer( Consumer<JmsListenerContainerSpec<S, C>> configurer) { Assert.notNull(configurer, "'configurer' must not be null"); configurer.accept(this.spec); return _this(); }
public JmsOutboundChannelSpecTemplateAware configureJmsTemplate(Consumer<JmsTemplateSpec> configurer) { Assert.notNull(configurer, "'configurer' must not be null"); configurer.accept(this.jmsTemplateSpec); return _this(); }
/** * Configure the channel adapter to use the template specification created by invoking the * {@link Consumer} callback, passing in a {@link JmsTemplateSpec}. * @param configurer the configurer. * @return the spec. */ public JmsInboundChannelSpecTemplateAware configureJmsTemplate(Consumer<JmsTemplateSpec> configurer) { Assert.notNull(configurer, "'configurer' must not be null"); configurer.accept(this.jmsTemplateSpec); return _this(); }
/** * Configure a listener container by invoking the {@link Consumer} callback, with a * {@link KafkaMessageListenerContainerSpec} argument. * @param configurer the configurer Java 8 Lambda. * @return the spec. */ public KafkaMessageDrivenChannelAdapterListenerContainerSpec<K, V> configureListenerContainer( Consumer<KafkaMessageListenerContainerSpec<K, V>> configurer) { Assert.notNull(configurer, "'configurer' must not be null"); configurer.accept(this.spec); return _this(); }
public S requestMapping(Consumer<RequestMappingSpec> requestMapping) { requestMapping.accept(new RequestMappingSpec(this.requestMapping)); return _this(); }
public S requestMapping(Consumer<RequestMappingSpec> requestMapping) { requestMapping.accept(new RequestMappingSpec(this.requestMapping)); return _this(); }
/** * Populate the provided {@link AbstractMappingMessageRouter} implementation * with options from {@link RouterSpec} and endpoint options from {@link GenericEndpointSpec}. * In addition accept options for the integration endpoint using {@link GenericEndpointSpec}. * @param router the {@link AbstractMappingMessageRouter} to populate. * @param routerConfigurer the {@link Consumer} to provide {@link MethodInvokingRouter} options. * @param endpointConfigurer the {@link Consumer} to provide integration endpoint options. * @param <K> the {@code channelKey mapping} type. * @param <R> the {@link AbstractMappingMessageRouter} type. * @return the current {@link IntegrationFlowDefinition}. */ public <K, R extends AbstractMappingMessageRouter> B route(R router, Consumer<RouterSpec<K, R>> routerConfigurer, Consumer<GenericEndpointSpec<R>> endpointConfigurer) { RouterSpec<K, R> routerSpec = new RouterSpec<K, R>(router); if (routerConfigurer != null) { routerConfigurer.accept(routerSpec); } return route(router, routerSpec, endpointConfigurer); }
/** * Populate the provided {@link AbstractMappingMessageRouter} implementation * with options from {@link RouterSpec} and endpoint options from {@link GenericEndpointSpec}. * In addition accept options for the integration endpoint using {@link GenericEndpointSpec}. * @param router the {@link AbstractMappingMessageRouter} to populate. * @param routerConfigurer the {@link Consumer} to provide {@link MethodInvokingRouter} options. * @param endpointConfigurer the {@link Consumer} to provide integration endpoint options. * @param <K> the {@code channelKey mapping} type. * @param <R> the {@link AbstractMappingMessageRouter} type. * @return the current {@link IntegrationFlowDefinition}. */ public <K, R extends AbstractMappingMessageRouter> B route(R router, Consumer<RouterSpec<K, R>> routerConfigurer, Consumer<GenericEndpointSpec<R>> endpointConfigurer) { RouterSpec<K, R> routerSpec = new RouterSpec<K, R>(router); if (routerConfigurer != null) { routerConfigurer.accept(routerSpec); } return route(router, routerSpec, endpointConfigurer); }
public S crossOrigin(Consumer<CrossOriginSpec> crossOrigin) { CrossOriginSpec originSpec = new CrossOriginSpec(); crossOrigin.accept(originSpec); this.target.setCrossOrigin(originSpec.crossOrigin); return _this(); }
public MailSendingMessageHandlerSpec javaMailProperties(Consumer<PropertiesBuilder> propertiesConfigurer) { PropertiesBuilder properties = new PropertiesBuilder(); propertiesConfigurer.accept(properties); return javaMailProperties(properties.get()); }
/** * Configure the {@code javaMailProperties} by invoking a {@link Consumer} callback which * is invoked with a {@link PropertiesBuilder}. * @param configurer the configurer. * @return the spec. * @see ImapMailReceiver#setJavaMailProperties(Properties) */ public ImapIdleChannelAdapterSpec javaMailProperties(Consumer<PropertiesBuilder> configurer) { PropertiesBuilder properties = new PropertiesBuilder(); configurer.accept(properties); return javaMailProperties(properties.get()); }
/** * Configure a reply container with a reply container specification determined by * invoking the {@link Consumer} callback with a {@link ReplyContainerSpec}. * @param configurer the configurer. * @return the current {@link JmsOutboundGatewaySpec}. */ public JmsOutboundGatewaySpec replyContainer(Consumer<ReplyContainerSpec> configurer) { Assert.notNull(configurer, "'configurer' must not be null"); ReplyContainerSpec spec = new ReplyContainerSpec(); configurer.accept(spec); this.target.setReplyContainerProperties(spec.get()); return _this(); }
/** * Configure the {@code javaMailProperties} by invoking a {@link Consumer} callback which * is invoked with a {@link PropertiesBuilder}. * @param configurer the configurer. * @return the spec. * @see AbstractMailReceiver#setJavaMailProperties(Properties) */ public S javaMailProperties(Consumer<PropertiesBuilder> configurer) { PropertiesBuilder properties = new PropertiesBuilder(); configurer.accept(properties); return javaMailProperties(properties.get()); }
public MailSendingMessageHandlerSpec javaMailProperties(Consumer<PropertiesBuilder> propertiesConfigurer) { PropertiesBuilder properties = new PropertiesBuilder(); propertiesConfigurer.accept(properties); return javaMailProperties(properties.get()); }