Add EmptyLineSeparator Checkstyle rule
* Support "blank lines around" via `spring-framework.xml` IDEA config * Fix all the Checkstyle violations
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2023 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -181,12 +181,12 @@ abstract class AbstractSubscribableAmqpChannel extends AbstractAmqpChannel
|
||||
this.container.setQueueNames(queue);
|
||||
MessageConverter converter =
|
||||
(getAmqpTemplate() instanceof RabbitTemplate rabbitTemplate)
|
||||
? rabbitTemplate.getMessageConverter()
|
||||
: new SimpleMessageConverter();
|
||||
? rabbitTemplate.getMessageConverter()
|
||||
: new SimpleMessageConverter();
|
||||
|
||||
MessageListener listener =
|
||||
new DispatchingMessageListener(converter, this.dispatcher, this, this.isPubSub,
|
||||
getMessageBuilderFactory(), getInboundHeaderMapper());
|
||||
getMessageBuilderFactory(), getInboundHeaderMapper());
|
||||
this.container.setMessageListener(listener);
|
||||
if (!this.container.isActive()) {
|
||||
this.container.afterPropertiesSet();
|
||||
@@ -261,7 +261,6 @@ abstract class AbstractSubscribableAmqpChannel extends AbstractAmqpChannel
|
||||
|
||||
protected abstract String obtainQueueName(String channelName);
|
||||
|
||||
|
||||
private static final class DispatchingMessageListener implements MessageListener {
|
||||
|
||||
private final Log logger = LogFactory.getLog(DispatchingMessageListener.class);
|
||||
@@ -292,7 +291,6 @@ abstract class AbstractSubscribableAmqpChannel extends AbstractAmqpChannel
|
||||
this.inboundHeaderMapper = inboundHeaderMapper;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void onMessage(org.springframework.amqp.core.Message message) {
|
||||
Message<?> messageToSend = null;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2021 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -55,7 +55,6 @@ public class PointToPointSubscribableAmqpChannel extends AbstractSubscribableAmq
|
||||
super(channelName, container, amqpTemplate);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Construct an instance with the supplied name, container and template; default header
|
||||
* mappers will be used if the message is mapped.
|
||||
@@ -73,7 +72,6 @@ public class PointToPointSubscribableAmqpChannel extends AbstractSubscribableAmq
|
||||
super(channelName, container, amqpTemplate, outboundMapper, inboundMapper);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Provide a Queue name to be used. If this is not provided,
|
||||
* the Queue's name will be the same as the channel name.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2021 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -93,7 +93,6 @@ public class PollableAmqpChannel extends AbstractAmqpChannel
|
||||
this.channelName = channelName;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Provide an explicitly configured queue name. If this is not provided, then a Queue will be created
|
||||
* implicitly with the channelName as its name. The implicit creation will require that either an AmqpAdmin
|
||||
@@ -286,7 +285,6 @@ public class PollableAmqpChannel extends AbstractAmqpChannel
|
||||
return counterFacade;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void setInterceptors(List<ChannelInterceptor> interceptors) {
|
||||
super.setInterceptors(interceptors);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2021 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -77,7 +77,6 @@ public class PublishSubscribeAmqpChannel extends AbstractSubscribableAmqpChannel
|
||||
super(channelName, container, amqpTemplate, true, outboundMapper, inboundMapper);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Configure the FanoutExchange instance. If this is not provided, then a
|
||||
* FanoutExchange will be declared implicitly, and its name will be the same
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2022 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -72,16 +72,13 @@ abstract class AbstractAmqpInboundAdapterParser extends AbstractSingleBeanDefini
|
||||
"transaction-manager"
|
||||
};
|
||||
|
||||
|
||||
private final String adapterClassName;
|
||||
|
||||
|
||||
AbstractAmqpInboundAdapterParser(String adapterClassName) {
|
||||
Assert.hasText(adapterClassName, "adapterClassName is required");
|
||||
this.adapterClassName = adapterClassName;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
protected final String getBeanClassName(Element element) {
|
||||
return this.adapterClassName;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2021 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -148,7 +148,6 @@ public class AmqpChannelFactoryBean extends AbstractFactoryBean<AbstractAmqpChan
|
||||
this.messageDriven = messageDriven;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void setBeanName(@Nullable String name) {
|
||||
this.beanName = name;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2019 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -39,7 +39,6 @@ public class AmqpInboundGatewayParser extends AbstractAmqpInboundAdapterParser {
|
||||
super(AmqpInboundGateway.class.getName());
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
protected void configureChannels(Element element, ParserContext parserContext, BeanDefinitionBuilder builder) {
|
||||
String amqpTemplateRef = element.getAttribute("amqp-template");
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2014-2022 the original author or authors.
|
||||
* Copyright 2014-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -64,7 +64,6 @@ public final class Amqp {
|
||||
return inboundGateway(listenerContainer, amqpTemplate);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Create an initial {@link AmqpInboundGatewaySpec}.
|
||||
* @param connectionFactory the connectionFactory.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2016-2022 the original author or authors.
|
||||
* Copyright 2016-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -271,7 +271,6 @@ AmqpBaseOutboundEndpointSpec<S extends AmqpBaseOutboundEndpointSpec<S, E>, E ext
|
||||
return delayExpression(new FunctionExpression<>(delayFunction));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Set the SpEL expression to calculate the {@code x-delay} header when using the
|
||||
* RabbitMQ delayed message exchange plugin.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2017-2023 the original author or authors.
|
||||
* Copyright 2017-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -55,4 +55,5 @@ public class AmqpInboundChannelAdapterSMLCSpec
|
||||
this.target.setBatchMode(batchMode);
|
||||
return this;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2023 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -141,7 +141,6 @@ public class AmqpInboundChannelAdapter extends MessageProducerSupport implements
|
||||
: null;
|
||||
}
|
||||
|
||||
|
||||
public void setMessageConverter(MessageConverter messageConverter) {
|
||||
Assert.notNull(messageConverter, "messageConverter must not be null");
|
||||
this.messageConverter = messageConverter;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2023 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -132,7 +132,6 @@ public class AmqpInboundGateway extends MessagingGatewaySupport {
|
||||
: null;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Specify the {@link MessageConverter} to convert request and reply to/from {@link Message}.
|
||||
* If the {@link #amqpTemplate} is explicitly set, this {@link MessageConverter}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2019 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -28,4 +28,5 @@ import org.springframework.integration.mapping.RequestReplyHeaderMapper;
|
||||
* @since 2.1
|
||||
*/
|
||||
public interface AmqpHeaderMapper extends RequestReplyHeaderMapper<MessageProperties> {
|
||||
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2022 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -45,7 +45,6 @@ import static org.mockito.Mockito.doAnswer;
|
||||
import static org.mockito.Mockito.mock;
|
||||
import static org.mockito.Mockito.when;
|
||||
|
||||
|
||||
/**
|
||||
* @author Gary Russell
|
||||
* @author Artem Bilan
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2022 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -116,6 +116,7 @@ public class AmqpChannelParserTests {
|
||||
}
|
||||
|
||||
private static class TestInterceptor implements ChannelInterceptor {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2023 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -152,6 +152,7 @@ public class AmqpInboundGatewayParserTests {
|
||||
}
|
||||
|
||||
private static class TestConverter extends SimpleMessageConverter {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2022 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -339,7 +339,6 @@ public class AmqpOutboundChannelAdapterParserTests {
|
||||
handler.stop();
|
||||
}
|
||||
|
||||
|
||||
public static class FooAdvice extends AbstractRequestHandlerAdvice {
|
||||
|
||||
@Override
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2022 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -291,7 +291,6 @@ public class AmqpOutboundGatewayParserTests {
|
||||
Mockito.any(org.springframework.amqp.core.Message.class), isNull());
|
||||
ReflectionUtils.setField(amqpTemplateField, endpoint, amqpTemplate);
|
||||
|
||||
|
||||
MessageChannel requestChannel = this.context.getBean("toRabbit4", MessageChannel.class);
|
||||
Message<?> message = MessageBuilder.withPayload("hello").setHeader("foo", "foo").build();
|
||||
requestChannel.send(message);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2022 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -61,7 +61,6 @@ public class OutboundGatewayIntegrationTests {
|
||||
assertThat(receive.getPayload()).isEqualTo(payload.toUpperCase());
|
||||
}
|
||||
|
||||
|
||||
public static class EchoBean {
|
||||
|
||||
String echo(String o) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2014-2023 the original author or authors.
|
||||
* Copyright 2014-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -206,7 +206,6 @@ public class AmqpTests {
|
||||
@Autowired
|
||||
private AtomicReference<?> raw;
|
||||
|
||||
|
||||
@Test
|
||||
public void testInboundMessagingExceptionFlow() {
|
||||
this.amqpTemplate.convertAndSend("si.dsl.exception.test", "foo");
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2013-2023 the original author or authors.
|
||||
* Copyright 2013-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -220,7 +220,6 @@ public class InboundEndpointTests {
|
||||
gateway.setReplyHeadersMappedLast(true);
|
||||
gateway.afterPropertiesSet();
|
||||
|
||||
|
||||
Object payload = new Foo("bar1");
|
||||
|
||||
MessageProperties amqpMessageProperties = new MessageProperties();
|
||||
@@ -785,6 +784,7 @@ public class InboundEndpointTests {
|
||||
}
|
||||
|
||||
public record Foo(String bar) {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -165,7 +165,6 @@ public class DefaultAmqpHeaderMapperTests {
|
||||
assertThat(amqpProperties.getContentType()).isEqualTo("text/html");
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void toHeaders() {
|
||||
DefaultAmqpHeaderMapper headerMapper = DefaultAmqpHeaderMapper.inboundMapper();
|
||||
@@ -230,7 +229,6 @@ public class DefaultAmqpHeaderMapperTests {
|
||||
assertThat(headerMap.get(AmqpHeaders.CORRELATION_ID)).isEqualTo(testCorrelationId);
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void testToHeadersConsumerMetadata() {
|
||||
DefaultAmqpHeaderMapper headerMapper = DefaultAmqpHeaderMapper.inboundMapper();
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2022 the original author or authors.
|
||||
* Copyright 2022-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -86,7 +86,6 @@ public final class Camel {
|
||||
.exchangePattern(exchangePattern);
|
||||
}
|
||||
|
||||
|
||||
private Camel() {
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2022 the original author or authors.
|
||||
* Copyright 2022-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -39,7 +39,6 @@ import org.springframework.util.PatternMatchUtils;
|
||||
*/
|
||||
public class CamelHeaderMapper implements HeaderMapper<org.apache.camel.Message> {
|
||||
|
||||
|
||||
private static final LogAccessor LOGGER = new LogAccessor(CamelHeaderMapper.class);
|
||||
|
||||
private String[] inboundHeaderNames = {"*"};
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2022 the original author or authors.
|
||||
* Copyright 2022-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -34,7 +34,6 @@ import org.springframework.integration.config.xml.IntegrationNamespaceUtils;
|
||||
*/
|
||||
public class CassandraOutboundGatewayParser extends AbstractConsumerEndpointParser {
|
||||
|
||||
|
||||
@Override
|
||||
protected String getInputChannelAttributeName() {
|
||||
return "request-channel";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2022 the original author or authors.
|
||||
* Copyright 2022-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -16,7 +16,6 @@
|
||||
|
||||
package org.springframework.integration.cassandra;
|
||||
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2022 the original author or authors.
|
||||
* Copyright 2022-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -22,7 +22,6 @@ import org.springframework.data.cassandra.core.mapping.Indexed;
|
||||
import org.springframework.data.cassandra.core.mapping.PrimaryKey;
|
||||
import org.springframework.data.cassandra.core.mapping.Table;
|
||||
|
||||
|
||||
/**
|
||||
* Test POJO
|
||||
*
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2013-2023 the original author or authors.
|
||||
* Copyright 2013-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -84,7 +84,6 @@ public class IntegrationMessageHeaderAccessor extends MessageHeaderAccessor {
|
||||
*/
|
||||
public static final String REACTOR_CONTEXT = "reactorContext";
|
||||
|
||||
|
||||
private static final BiFunction<String, String, String> TYPE_VERIFY_MESSAGE_FUNCTION =
|
||||
(name, trailer) -> "The '" + name + trailer;
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2019 the original author or authors.
|
||||
* Copyright 2019-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -88,7 +88,6 @@ public enum IntegrationPatternType { // NOSONAR Initialization circularity is us
|
||||
|
||||
recipient_list_router(IntegrationPatternCategory.message_routing);
|
||||
|
||||
|
||||
private final IntegrationPatternCategory patternCategory;
|
||||
|
||||
IntegrationPatternType(IntegrationPatternCategory patternCategory) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2023 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -257,7 +257,6 @@ public abstract class AbstractCorrelatingMessageHandler extends AbstractMessageP
|
||||
this.discardChannelName = discardChannelName;
|
||||
}
|
||||
|
||||
|
||||
public void setSendPartialResultOnExpiry(boolean sendPartialResultOnExpiry) {
|
||||
this.sendPartialResultOnExpiry = sendPartialResultOnExpiry;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2021 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -62,7 +62,6 @@ public class CorrelatingMessageBarrier extends AbstractMessageHandler implements
|
||||
|
||||
private ReleaseStrategy releaseStrategy;
|
||||
|
||||
|
||||
public CorrelatingMessageBarrier() {
|
||||
this(new SimpleMessageStore(0));
|
||||
}
|
||||
@@ -71,7 +70,6 @@ public class CorrelatingMessageBarrier extends AbstractMessageHandler implements
|
||||
this.store = store;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Set the CorrelationStrategy to be used to determine the correlation key for incoming messages.
|
||||
* @param correlationStrategy The correlation strategy.
|
||||
@@ -103,7 +101,6 @@ public class CorrelatingMessageBarrier extends AbstractMessageHandler implements
|
||||
return existingLock == null ? correlationKey : existingLock;
|
||||
}
|
||||
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@Override
|
||||
public Message<Object> receive() {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2020 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -41,7 +41,6 @@ public class ExpressionEvaluatingCorrelationStrategy implements CorrelationStrat
|
||||
|
||||
private final ExpressionEvaluatingMessageProcessor<Object> processor;
|
||||
|
||||
|
||||
public ExpressionEvaluatingCorrelationStrategy(String expressionString) {
|
||||
Assert.hasText(expressionString, "expressionString must not be empty");
|
||||
Expression expression = EXPRESSION_PARSER.parseExpression(expressionString);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2019 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -35,7 +35,6 @@ public class ExpressionEvaluatingMessageGroupProcessor extends AbstractAggregati
|
||||
|
||||
private final ExpressionEvaluatingMessageListProcessor processor;
|
||||
|
||||
|
||||
public ExpressionEvaluatingMessageGroupProcessor(String expression) {
|
||||
this.processor = new ExpressionEvaluatingMessageListProcessor(expression);
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2021 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -30,7 +30,6 @@ public class HeaderAttributeCorrelationStrategy implements CorrelationStrategy {
|
||||
|
||||
private final String attributeName;
|
||||
|
||||
|
||||
public HeaderAttributeCorrelationStrategy(String attributeName) {
|
||||
Assert.hasText(attributeName, "the 'attributeName' must not be empty");
|
||||
this.attributeName = attributeName;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2020 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -35,7 +35,6 @@ public class MethodInvokingReleaseStrategy implements ReleaseStrategy, BeanFacto
|
||||
|
||||
private final MethodInvokingMessageListProcessor<Boolean> adapter;
|
||||
|
||||
|
||||
public MethodInvokingReleaseStrategy(Object object, Method method) {
|
||||
this.adapter = new MethodInvokingMessageListProcessor<Boolean>(object, method, Boolean.class);
|
||||
}
|
||||
@@ -44,7 +43,6 @@ public class MethodInvokingReleaseStrategy implements ReleaseStrategy, BeanFacto
|
||||
this.adapter = new MethodInvokingMessageListProcessor<Boolean>(object, methodName, Boolean.class);
|
||||
}
|
||||
|
||||
|
||||
public void setConversionService(ConversionService conversionService) {
|
||||
this.adapter.setConversionService(conversionService);
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2022 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -18,7 +18,6 @@ package org.springframework.integration.aggregator;
|
||||
|
||||
import org.springframework.integration.store.MessageGroup;
|
||||
|
||||
|
||||
/**
|
||||
* Strategy for determining when a group of messages reaches a state of
|
||||
* completion (i.e. can trip a barrier).
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2021 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -43,13 +43,11 @@ public class ResequencingMessageHandler extends AbstractCorrelatingMessageHandle
|
||||
this.setExpireGroupsUponTimeout(false);
|
||||
}
|
||||
|
||||
|
||||
public ResequencingMessageHandler(MessageGroupProcessor processor, MessageGroupStore store) {
|
||||
super(processor, store);
|
||||
this.setExpireGroupsUponTimeout(false);
|
||||
}
|
||||
|
||||
|
||||
public ResequencingMessageHandler(MessageGroupProcessor processor) {
|
||||
super(processor);
|
||||
this.setExpireGroupsUponTimeout(false);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2022 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -32,4 +32,5 @@ import java.lang.annotation.Target;
|
||||
@Target(ElementType.METHOD)
|
||||
@Documented
|
||||
public @interface CorrelationStrategy {
|
||||
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2014-2022 the original author or authors.
|
||||
* Copyright 2014-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -74,7 +74,6 @@ public @interface IntegrationComponentScan {
|
||||
*/
|
||||
Class<?>[] basePackageClasses() default {};
|
||||
|
||||
|
||||
/**
|
||||
* Indicates whether automatic detection of classes annotated with
|
||||
* {@code @MessagingGateway} should be enabled.
|
||||
@@ -106,7 +105,6 @@ public @interface IntegrationComponentScan {
|
||||
*/
|
||||
Filter[] excludeFilters() default {};
|
||||
|
||||
|
||||
/**
|
||||
* The {@link BeanNameGenerator} class to be used for naming detected Spring Integration components.
|
||||
* <p>The default value of the {@link BeanNameGenerator} interface itself indicates
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2022 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -64,7 +64,6 @@ public class MethodAnnotationPublisherMetadataSource implements PublisherMetadat
|
||||
|
||||
private volatile String channelAttributeName = "channel";
|
||||
|
||||
|
||||
public MethodAnnotationPublisherMetadataSource() {
|
||||
this(Collections.singleton(Publisher.class));
|
||||
}
|
||||
@@ -74,7 +73,6 @@ public class MethodAnnotationPublisherMetadataSource implements PublisherMetadat
|
||||
this.annotationTypes = annotationTypes;
|
||||
}
|
||||
|
||||
|
||||
public void setChannelAttributeName(String channelAttributeName) {
|
||||
Assert.hasText(channelAttributeName, "channelAttributeName must not be empty");
|
||||
this.channelAttributeName = channelAttributeName;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2019 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -39,7 +39,6 @@ public class MethodNameMappingPublisherMetadataSource implements PublisherMetada
|
||||
|
||||
private volatile Map<String, String> channelMap = Collections.emptyMap();
|
||||
|
||||
|
||||
public MethodNameMappingPublisherMetadataSource(Map<String, String> payloadExpressionMap) {
|
||||
Assert.notEmpty(payloadExpressionMap, "payloadExpressionMap must not be empty");
|
||||
this.payloadExpressionMap =
|
||||
@@ -49,7 +48,6 @@ public class MethodNameMappingPublisherMetadataSource implements PublisherMetada
|
||||
e -> EXPRESSION_PARSER.parseExpression(e.getValue())));
|
||||
}
|
||||
|
||||
|
||||
public void setHeaderExpressionMap(Map<String, Map<String, String>> headerExpressionMap) {
|
||||
this.headerExpressionMap =
|
||||
headerExpressionMap
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2020 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -67,7 +67,6 @@ public class PublisherAnnotationAdvisor extends AbstractPointcutAdvisor implemen
|
||||
this.pointcut = buildPointcut(publisherAnnotationTypes);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* A channel bean name to be used as default for publishing.
|
||||
* @param defaultChannelName the default channel name.
|
||||
@@ -107,14 +106,12 @@ public class PublisherAnnotationAdvisor extends AbstractPointcutAdvisor implemen
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
private static final class MetaAnnotationMatchingPointcut implements Pointcut {
|
||||
|
||||
private final ClassFilter classFilter;
|
||||
|
||||
private final MethodMatcher methodMatcher;
|
||||
|
||||
|
||||
/**
|
||||
* Create a new MetaAnnotationMatchingPointcut for the given annotation type.
|
||||
* @param classAnnotationType the annotation type to look for at the class level
|
||||
@@ -155,7 +152,6 @@ public class PublisherAnnotationAdvisor extends AbstractPointcutAdvisor implemen
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public ClassFilter getClassFilter() {
|
||||
return this.classFilter;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2019 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -48,7 +48,6 @@ interface PublisherMetadataSource {
|
||||
Expression RETURN_VALUE_EXPRESSION =
|
||||
EXPRESSION_PARSER.parseExpression("#" + PublisherMetadataSource.RETURN_VALUE_VARIABLE_NAME);
|
||||
|
||||
|
||||
/**
|
||||
* Returns the channel name to which Messages should be published
|
||||
* for this particular method invocation.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2019 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -40,7 +40,6 @@ public class SimplePublisherMetadataSource implements PublisherMetadataSource {
|
||||
|
||||
private volatile Map<String, Expression> headerExpressions;
|
||||
|
||||
|
||||
public void setChannelName(String channelName) {
|
||||
this.channelName = channelName;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2022-2023 the original author or authors.
|
||||
* Copyright 2022-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -97,7 +97,6 @@ class CoreRuntimeHints implements RuntimeHintsRegistrar {
|
||||
Pausable.class)
|
||||
.forEach(type -> reflectionHints.registerType(type, MemberCategory.INVOKE_PUBLIC_METHODS));
|
||||
|
||||
|
||||
if (ClassUtils.isPresent("com.jayway.jsonpath.JsonPath", classLoader)) {
|
||||
reflectionHints.registerType(JsonPathUtils.class, MemberCategory.INVOKE_PUBLIC_METHODS);
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2022 the original author or authors.
|
||||
* Copyright 2022-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -28,7 +28,6 @@ import org.springframework.beans.factory.support.RegisteredBean;
|
||||
import org.springframework.integration.annotation.MessagingGateway;
|
||||
import org.springframework.integration.gateway.GatewayProxyFactoryBean;
|
||||
|
||||
|
||||
/**
|
||||
* A {@link BeanFactoryInitializationAotProcessor} for registering proxy interfaces
|
||||
* of the {@link GatewayProxyFactoryBean} beans or {@link MessagingGateway} interfaces.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2019 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -49,7 +49,6 @@ public class ChannelPurger {
|
||||
|
||||
private final MessageSelector selector;
|
||||
|
||||
|
||||
public ChannelPurger(QueueChannel... channels) {
|
||||
this(null, channels);
|
||||
}
|
||||
@@ -63,7 +62,6 @@ public class ChannelPurger {
|
||||
this.channels = Arrays.copyOf(channels, channels.length);
|
||||
}
|
||||
|
||||
|
||||
public final List<Message<?>> purge() {
|
||||
List<Message<?>> purgedMessages = new ArrayList<>();
|
||||
for (QueueChannel channel : this.channels) {
|
||||
|
||||
@@ -58,7 +58,6 @@ public class DirectChannel extends AbstractSubscribableChannel {
|
||||
this.dispatcher.setLoadBalancingStrategy(loadBalancingStrategy);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Specify whether the channel's dispatcher should have failover enabled.
|
||||
* By default, it will. Set this value to 'false' to disable it.
|
||||
|
||||
@@ -82,7 +82,6 @@ public class ExecutorChannel extends AbstractExecutorChannel {
|
||||
this.dispatcher = unicastingDispatcher;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Specify whether the channel's dispatcher should have failover enabled.
|
||||
* By default, it will. Set this value to 'false' to disable it.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2019 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -63,7 +63,6 @@ public class MessagePublishingErrorHandler extends ErrorMessagePublisher impleme
|
||||
setChannelResolver(channelResolver);
|
||||
}
|
||||
|
||||
|
||||
public void setDefaultErrorChannel(@Nullable MessageChannel defaultErrorChannel) {
|
||||
setChannel(defaultErrorChannel);
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2022 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -91,7 +91,6 @@ public class PublishSubscribeChannel extends AbstractExecutorChannel implements
|
||||
this.dispatcher = new BroadcastingDispatcher(executor, requireSubscribers);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String getComponentType() {
|
||||
return "publish-subscribe-channel";
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2022 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -36,7 +36,6 @@ public class GlobalChannelInterceptorWrapper implements Ordered {
|
||||
|
||||
private volatile int order = 0;
|
||||
|
||||
|
||||
public GlobalChannelInterceptorWrapper(ChannelInterceptor channelInterceptor) {
|
||||
Assert.notNull(channelInterceptor, "channelInterceptor must not be null");
|
||||
this.channelInterceptor = channelInterceptor;
|
||||
@@ -47,7 +46,6 @@ public class GlobalChannelInterceptorWrapper implements Ordered {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public ChannelInterceptor getChannelInterceptor() {
|
||||
return this.channelInterceptor;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2019 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -37,12 +37,10 @@ public class MessageSelectingInterceptor implements ChannelInterceptor {
|
||||
|
||||
private final List<MessageSelector> selectors;
|
||||
|
||||
|
||||
public MessageSelectingInterceptor(MessageSelector... selectors) {
|
||||
this.selectors = Arrays.asList(selectors);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public Message<?> preSend(Message<?> message, MessageChannel channel) {
|
||||
for (MessageSelector selector : this.selectors) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2015-2022 the original author or authors.
|
||||
* Copyright 2015-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -97,7 +97,6 @@ public abstract class ThreadStatePropagationChannelInterceptor<S> implements Exe
|
||||
|
||||
protected abstract void populatePropagatedContext(@Nullable S state, Message<?> message, MessageChannel channel);
|
||||
|
||||
|
||||
private static final class MessageWithThreadState implements Message<Object>, MessageDecorator {
|
||||
|
||||
private final Message<Object> message;
|
||||
|
||||
@@ -64,7 +64,6 @@ public class WireTap implements ChannelInterceptor, ManageableLifecycle, VetoCap
|
||||
|
||||
private volatile boolean running = true;
|
||||
|
||||
|
||||
/**
|
||||
* Create a new wire tap with <em>no</em> {@link MessageSelector}.
|
||||
* @param channel the MessageChannel to which intercepted messages will be sent
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2015-2021 the original author or authors.
|
||||
* Copyright 2015-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -27,6 +27,7 @@ import java.io.OutputStream;
|
||||
* @since 4.2
|
||||
*/
|
||||
public interface Codec {
|
||||
|
||||
/**
|
||||
* Encode (encode) an object to an OutputStream.
|
||||
* @param object the object to encode
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2015-2022 the original author or authors.
|
||||
* Copyright 2015-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -68,7 +68,6 @@ public class KryoClassListRegistrar extends AbstractKryoRegistrar {
|
||||
this.initialValue = initialValue;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public List<Registration> getRegistrations() {
|
||||
List<Registration> registrations = new ArrayList<>();
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2015-2019 the original author or authors.
|
||||
* Copyright 2015-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -50,4 +50,5 @@ public interface KryoRegistrar {
|
||||
* @return the list of {@link Registration} provided
|
||||
*/
|
||||
List<Registration> getRegistrations();
|
||||
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2023 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -702,7 +702,6 @@ public abstract class AbstractMethodAnnotationPostProcessor<T extends Annotation
|
||||
pollingEndpoint.setTransactionSynchronizationFactory(pollerMetadata.getTransactionSynchronizationFactory());
|
||||
}
|
||||
|
||||
|
||||
private PollerMetadata configurePoller(AbstractPollingEndpoint pollingEndpoint, String triggerRef,
|
||||
String executorRef, String fixedDelayValue, String fixedRateValue, String maxMessagesPerPollValue,
|
||||
String cron, String errorChannel, String receiveTimeout) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2015-2021 the original author or authors.
|
||||
* Copyright 2015-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -43,7 +43,6 @@ import org.springframework.messaging.MessageHandler;
|
||||
import org.springframework.scheduling.TaskScheduler;
|
||||
import org.springframework.util.StringUtils;
|
||||
|
||||
|
||||
/**
|
||||
* {@link org.springframework.beans.factory.FactoryBean} to create an
|
||||
* {@link AggregatingMessageHandler}.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2023 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -65,7 +65,6 @@ import org.springframework.util.Assert;
|
||||
import org.springframework.util.CollectionUtils;
|
||||
import org.springframework.util.StringUtils;
|
||||
|
||||
|
||||
/**
|
||||
* The {@link FactoryBean} implementation for {@link AbstractEndpoint} population.
|
||||
* Controls all the necessary properties and lifecycle.
|
||||
|
||||
@@ -97,7 +97,6 @@ public class DefaultConfiguringBeanFactoryPostProcessor implements BeanDefinitio
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private ConfigurableListableBeanFactory beanFactory;
|
||||
|
||||
private BeanDefinitionRegistry registry;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2014-2022 the original author or authors.
|
||||
* Copyright 2014-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -42,7 +42,6 @@ import org.springframework.integration.support.management.micrometer.MicrometerM
|
||||
@Import({MicrometerMetricsCaptorImportSelector.class, IntegrationManagementConfiguration.class})
|
||||
public @interface EnableIntegrationManagement {
|
||||
|
||||
|
||||
/**
|
||||
* Use for disabling all logging in the main message flow in framework components. When 'false',
|
||||
* such logging will be skipped, regardless of logging level. When 'true',
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2019 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -39,19 +39,16 @@ public class ExpressionFactoryBean extends AbstractFactoryBean<Expression> {
|
||||
|
||||
private ExpressionParser parser = DEFAULT_PARSER;
|
||||
|
||||
|
||||
public ExpressionFactoryBean(String expressionString) {
|
||||
Assert.hasText(expressionString, "'expressionString' must not be empty or null");
|
||||
this.expressionString = expressionString;
|
||||
}
|
||||
|
||||
|
||||
public void setParserConfiguration(SpelParserConfiguration parserConfiguration) {
|
||||
Assert.notNull(parserConfiguration, "'parserConfiguration' must not be null");
|
||||
this.parser = new SpelExpressionParser(parserConfiguration);
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public Class<?> getObjectType() {
|
||||
return Expression.class;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2019 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -106,7 +106,6 @@ public class FilterFactoryBean extends AbstractStandardMessageHandlerFactoryBean
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
protected void postProcessReplyProducer(AbstractMessageProducingHandler handler) {
|
||||
super.postProcessReplyProducer(handler);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2014-2019 the original author or authors.
|
||||
* Copyright 2014-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -43,7 +43,6 @@ public final class FixedSubscriberChannelBeanFactoryPostProcessor implements Bea
|
||||
this.candidateFixedChannelHandlerMap = candidateHandlers;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException {
|
||||
if (beanFactory instanceof BeanDefinitionRegistry) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2023 the original author or authors.
|
||||
* Copyright 2023-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -16,7 +16,6 @@
|
||||
|
||||
package org.springframework.integration.config;
|
||||
|
||||
|
||||
import java.io.PrintWriter;
|
||||
import java.io.StringWriter;
|
||||
import java.util.Properties;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2015-2022 the original author or authors.
|
||||
* Copyright 2015-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -43,7 +43,6 @@ import org.springframework.messaging.MessageChannel;
|
||||
import org.springframework.messaging.MessageHandler;
|
||||
import org.springframework.util.Assert;
|
||||
|
||||
|
||||
/**
|
||||
* Configures beans that implement {@link IntegrationManagement}.
|
||||
* Configures logging, {@link MetricsCaptor} and {@link ObservationRegistry} for all (or selected) components.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2014-2023 the original author or authors.
|
||||
* Copyright 2014-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -114,7 +114,6 @@ public class IntegrationRegistrar implements ImportBeanDefinitionRegistrar {
|
||||
.getBeanDefinition());
|
||||
}
|
||||
|
||||
|
||||
String beanName = Introspector.decapitalize(MessagingAnnotationBeanPostProcessor.class.getName());
|
||||
if (!registry.containsBeanDefinition(beanName)) {
|
||||
registry.registerBeanDefinition(beanName,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2020 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -108,7 +108,6 @@ public class ServiceActivatorFactoryBean extends AbstractStandardMessageHandlerF
|
||||
return handler;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Always returns true - any {@link AbstractMessageProducingHandler} can
|
||||
* be used directly.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2023 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -79,7 +79,6 @@ public class SourcePollingChannelAdapterFactoryBean implements FactoryBean<Sourc
|
||||
|
||||
private volatile boolean initialized;
|
||||
|
||||
|
||||
public void setSource(MessageSource<?> source) {
|
||||
this.source = source;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2019 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -94,4 +94,5 @@ public class AggregatorParser extends AbstractCorrelatingMessageHandlerParser {
|
||||
|
||||
return builder;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2022 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -86,7 +86,6 @@ public class AnnotationConfigParser implements BeanDefinitionParser {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public Set<MethodMetadata> getDeclaredMethods() {
|
||||
throw new UnsupportedOperationException("The class doesn't support this operation");
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2021 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -131,7 +131,6 @@ public class ChainParser extends AbstractConsumerEndpointParser {
|
||||
boolean hasId = StringUtils.hasText(id);
|
||||
String handlerComponentName = chainHandlerId + "$child" + (hasId ? "." + id : "#" + order);
|
||||
|
||||
|
||||
if ("bean".equals(element.getLocalName())) {
|
||||
holder = parserContext.getDelegate().parseBeanDefinitionElement(element, parentDefinition);
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2022 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -42,13 +42,11 @@ public class ChannelInterceptorParser {
|
||||
|
||||
private final Map<String, BeanDefinitionRegisteringParser> parsers;
|
||||
|
||||
|
||||
public ChannelInterceptorParser() {
|
||||
this.parsers = new HashMap<String, BeanDefinitionRegisteringParser>();
|
||||
this.parsers.put("wire-tap", new WireTapParser());
|
||||
}
|
||||
|
||||
|
||||
@SuppressWarnings({"unchecked", "rawtypes"})
|
||||
public ManagedList parseInterceptors(Element element, ParserContext parserContext) {
|
||||
ManagedList interceptors = new ManagedList();
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2023 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -97,7 +97,6 @@ public class GatewayParser implements BeanDefinitionParser {
|
||||
gatewayAttributes.put("defaultRequestTimeout",
|
||||
element.getAttribute(isNested ? "request-timeout" : "default-request-timeout"));
|
||||
|
||||
|
||||
headers(element, gatewayAttributes);
|
||||
|
||||
methods(element, parserContext, gatewayAttributes);
|
||||
@@ -185,7 +184,6 @@ public class GatewayParser implements BeanDefinitionParser {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private static BeanDefinitionHolder buildBeanDefinition(Map<String, Object> gatewayAttributes, // NOSONAR complexity
|
||||
ParserContext parserContext) {
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2015-2020 the original author or authors.
|
||||
* Copyright 2015-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -33,7 +33,6 @@ import org.springframework.integration.config.IntegrationManagementConfigurer;
|
||||
*/
|
||||
public class IntegrationManagementParser extends AbstractBeanDefinitionParser {
|
||||
|
||||
|
||||
@Override
|
||||
protected String resolveId(Element element, AbstractBeanDefinition definition, ParserContext parserContext)
|
||||
throws BeanDefinitionStoreException {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2019 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -31,7 +31,6 @@ import org.springframework.integration.router.RecipientListRouter.Recipient;
|
||||
import org.springframework.util.StringUtils;
|
||||
import org.springframework.util.xml.DomUtils;
|
||||
|
||||
|
||||
/**
|
||||
* Parser for the <recipient-list-router/> element.
|
||||
*
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2013-2019 the original author or authors.
|
||||
* Copyright 2013-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -41,4 +41,5 @@ public class SpelFunctionParser extends AbstractSingleBeanDefinitionParser {
|
||||
.addConstructorArgValue(element.getAttribute("method"));
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2023 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -91,7 +91,6 @@ public abstract class IntegrationContextUtils {
|
||||
|
||||
public static final String INTEGRATION_GRAPH_SERVER_BEAN_NAME = "integrationGraphServer";
|
||||
|
||||
|
||||
public static final String SPEL_PROPERTY_ACCESSOR_REGISTRAR_BEAN_NAME = "spelPropertyAccessorRegistrar";
|
||||
|
||||
public static final String ARGUMENT_RESOLVER_MESSAGE_CONVERTER_BEAN_NAME =
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2014-2023 the original author or authors.
|
||||
* Copyright 2014-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -75,7 +75,6 @@ public final class IntegrationProperties {
|
||||
public static final String CHANNELS_MAX_BROADCAST_SUBSCRIBERS =
|
||||
INTEGRATION_PROPERTIES_PREFIX + "channels.maxBroadcastSubscribers";
|
||||
|
||||
|
||||
/**
|
||||
* Specifies the value for {@link org.springframework.integration.channel.PublishSubscribeChannel#requireSubscribers}
|
||||
* on a global default {@link IntegrationContextUtils#ERROR_CHANNEL_BEAN_NAME}.
|
||||
@@ -90,7 +89,6 @@ public final class IntegrationProperties {
|
||||
public static final String ERROR_CHANNEL_IGNORE_FAILURES =
|
||||
INTEGRATION_PROPERTIES_PREFIX + "channels.error.ignoreFailures";
|
||||
|
||||
|
||||
/**
|
||||
* Specifies the value of {@link org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler#poolSize}
|
||||
* for the {@code taskScheduler} bean initialized by the Integration infrastructure.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2019 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -39,7 +39,6 @@ public class AsyncMessagingTemplate extends MessagingTemplate implements AsyncMe
|
||||
|
||||
private volatile AsyncTaskExecutor executor = new SimpleAsyncTaskExecutor();
|
||||
|
||||
|
||||
public void setExecutor(Executor executor) {
|
||||
Assert.notNull(executor, "executor must not be null");
|
||||
this.executor = (executor instanceof AsyncTaskExecutor) ?
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2022 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -38,7 +38,6 @@ public class AggregateMessageDeliveryException extends MessageDeliveryException
|
||||
|
||||
private final List<? extends Exception> aggregatedExceptions;
|
||||
|
||||
|
||||
public AggregateMessageDeliveryException(Message<?> undeliveredMessage,
|
||||
String description, List<? extends Exception> aggregatedExceptions) {
|
||||
|
||||
|
||||
@@ -77,7 +77,6 @@ public class BroadcastingDispatcher extends AbstractDispatcher implements BeanFa
|
||||
|
||||
private volatile boolean messageBuilderFactorySet;
|
||||
|
||||
|
||||
public BroadcastingDispatcher() {
|
||||
this(null, false);
|
||||
}
|
||||
@@ -206,7 +205,6 @@ public class BroadcastingDispatcher extends AbstractDispatcher implements BeanFa
|
||||
return dispatched >= this.minSubscribers;
|
||||
}
|
||||
|
||||
|
||||
private Runnable createMessageHandlingTask(final MessageHandler handler, final Message<?> message) {
|
||||
MessageHandlingRunnable task = new MessageHandlingRunnable() {
|
||||
|
||||
|
||||
@@ -73,7 +73,6 @@ public class UnicastingDispatcher extends AbstractDispatcher {
|
||||
this.executor = executor;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Specify whether this dispatcher should failover when a single
|
||||
* {@link MessageHandler} throws an Exception. The default value is
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2016-2023 the original author or authors.
|
||||
* Copyright 2016-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -120,7 +120,6 @@ public class AggregatorSpec extends CorrelationHandlerSpec<AggregatorSpec, Aggre
|
||||
return _this();
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public Map<Object, String> getComponentsToRegister() {
|
||||
if (this.headersFunction != null) {
|
||||
|
||||
@@ -697,7 +697,7 @@ public abstract class BaseIntegrationFlowDefinition<B extends BaseIntegrationFlo
|
||||
* @see LambdaMessageProcessor
|
||||
* @see GenericEndpointSpec
|
||||
*/
|
||||
private <P, T> B transform(@Nullable Class<P> expectedType, GenericTransformer<P, T> genericTransformer,
|
||||
private <P, T> B transform(@Nullable Class<P> expectedType, GenericTransformer<P, T> genericTransformer,
|
||||
@Nullable Consumer<GenericEndpointSpec<MessageTransformingHandler>> endpointConfigurer) {
|
||||
|
||||
Assert.notNull(genericTransformer, "'genericTransformer' must not be null");
|
||||
@@ -1320,7 +1320,8 @@ public abstract class BaseIntegrationFlowDefinition<B extends BaseIntegrationFlo
|
||||
* @return the current {@link BaseIntegrationFlowDefinition}.
|
||||
*/
|
||||
public B split() {
|
||||
return splitWith((splitterSpec) -> { });
|
||||
return splitWith((splitterSpec) -> {
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2016-2023 the original author or authors.
|
||||
* Copyright 2016-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -138,7 +138,6 @@ public final class Channels {
|
||||
return MessageChannels.executor(id, executor);
|
||||
}
|
||||
|
||||
|
||||
public FluxMessageChannelSpec flux() {
|
||||
return MessageChannels.flux();
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2016-2023 the original author or authors.
|
||||
* Copyright 2016-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -313,7 +313,6 @@ public class EnricherSpec extends ConsumerEndpointSpec<EnricherSpec, ContentEnri
|
||||
return _this();
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
protected Tuple2<ConsumerEndpointFactoryBean, ContentEnricher> doGet() {
|
||||
if (!this.propertyExpressions.isEmpty()) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2016-2023 the original author or authors.
|
||||
* Copyright 2016-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -749,7 +749,6 @@ public class HeaderEnricherSpec extends ConsumerEndpointSpec<HeaderEnricherSpec,
|
||||
return header(name, value, null);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Add a single header specification.
|
||||
* @param name the header name.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2016-2019 the original author or authors.
|
||||
* Copyright 2016-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -30,4 +30,5 @@ import org.springframework.messaging.MessageHandler;
|
||||
*/
|
||||
public abstract class MessageHandlerSpec<S extends MessageHandlerSpec<S, H>, H extends MessageHandler>
|
||||
extends IntegrationComponentSpec<S, H> {
|
||||
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2016-2020 the original author or authors.
|
||||
* Copyright 2016-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -81,7 +81,6 @@ public class QueueChannelSpec extends MessageChannelSpec<QueueChannelSpec, Queue
|
||||
return (MessageStoreSpec) super.id(id);
|
||||
}
|
||||
|
||||
|
||||
public MessageStoreSpec capacity(Integer capacityToSet) {
|
||||
this.capacity = capacityToSet;
|
||||
return this;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2016-2023 the original author or authors.
|
||||
* Copyright 2016-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -205,7 +205,6 @@ public class RecipientListRouterSpec extends AbstractRouterSpec<RecipientListRou
|
||||
return recipientFlow((String) null, subFlow);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Adds a subflow that will be invoked if the expression evaluates to 'true'.
|
||||
* @param expression the expression.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2016-2023 the original author or authors.
|
||||
* Copyright 2016-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -311,7 +311,6 @@ public abstract class Transformers {
|
||||
return new StreamTransformer(charset);
|
||||
}
|
||||
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
static <I, O> Flux<Message<O>> transformWithFunction(Publisher<Message<I>> publisher,
|
||||
Function<? super Flux<Message<I>>, ? extends Publisher<O>> fluxFunction) {
|
||||
@@ -334,7 +333,6 @@ public abstract class Transformers {
|
||||
.contextWrite(ctx -> ctx.put(RequestMessageHolder.class, new RequestMessageHolder()));
|
||||
}
|
||||
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
private static final class RequestMessageHolder extends AtomicReference<Message<?>> {
|
||||
|
||||
|
||||
@@ -454,7 +454,6 @@ public class IntegrationFlowBeanPostProcessor
|
||||
|
||||
((BeanDefinitionRegistry) this.beanFactory).registerBeanDefinition(beanName, beanDefinition);
|
||||
|
||||
|
||||
this.beanFactory.getBean(beanName);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2016-2023 the original author or authors.
|
||||
* Copyright 2016-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -47,7 +47,6 @@ public class FixedSubscriberChannelPrototype implements MessageChannel {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean send(Message<?> message) {
|
||||
throw new UnsupportedOperationException();
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2016-2023 the original author or authors.
|
||||
* Copyright 2016-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -39,7 +39,6 @@ public record MessageChannelReference(String name) implements MessageChannel {
|
||||
Assert.notNull(name, "'name' must not be null");
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean send(Message<?> message) {
|
||||
throw new UnsupportedOperationException();
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2022 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -40,7 +40,6 @@ public class EventDrivenConsumer extends AbstractEndpoint implements Integration
|
||||
|
||||
private final MessageHandler handler;
|
||||
|
||||
|
||||
public EventDrivenConsumer(SubscribableChannel inputChannel, MessageHandler handler) {
|
||||
Assert.notNull(inputChannel, "inputChannel must not be null");
|
||||
Assert.notNull(handler, "handler must not be null");
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2021 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -34,7 +34,6 @@ public class ExpressionEvaluatingMessageSource<T> extends AbstractMessageSource<
|
||||
|
||||
private final Class<T> expectedType;
|
||||
|
||||
|
||||
public ExpressionEvaluatingMessageSource(Expression expression, Class<T> expectedType) {
|
||||
Assert.notNull(expression, "expression must not be null");
|
||||
this.expression = expression;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2023 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -47,7 +47,6 @@ public class MethodInvokingMessageSource extends AbstractMessageSource<Object> i
|
||||
|
||||
private final Lock initializationMonitor = new ReentrantLock();
|
||||
|
||||
|
||||
public void setObject(Object object) {
|
||||
Assert.notNull(object, "'object' must not be null");
|
||||
this.object = object;
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user