Skip to content

Commit fd082db

Browse files
committed
Minor Polishing
Unused imports etc.
1 parent c8c8160 commit fd082db

File tree

3 files changed

+47
-34
lines changed

3 files changed

+47
-34
lines changed

spring-integration-core/src/main/java/org/springframework/integration/channel/MessageChannelReactiveUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ private static <T> Publisher<Message<T>> adaptPollableChannelToPublisher(Pollabl
7070
}
7171

7272

73-
private final static class SubscribableChannelPublisherAdapter<T> implements Publisher<Message<T>> {
73+
private static final class SubscribableChannelPublisherAdapter<T> implements Publisher<Message<T>> {
7474

7575
private final SubscribableChannel channel;
7676

@@ -93,7 +93,7 @@ public void subscribe(Subscriber<? super Message<T>> subscriber) {
9393

9494
}
9595

96-
private final static class PollableChannelPublisherAdapter<T> implements Publisher<Message<T>> {
96+
private static final class PollableChannelPublisherAdapter<T> implements Publisher<Message<T>> {
9797

9898
private final PollableChannel channel;
9999

spring-integration-core/src/main/java/org/springframework/integration/dsl/IntegrationFlowDefinition.java

Lines changed: 38 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
import org.springframework.expression.spel.standard.SpelExpressionParser;
3535
import org.springframework.integration.aggregator.AggregatingMessageHandler;
3636
import org.springframework.integration.aggregator.BarrierMessageHandler;
37-
import org.springframework.integration.aggregator.ResequencingMessageHandler;
3837
import org.springframework.integration.channel.ChannelInterceptorAware;
3938
import org.springframework.integration.channel.DirectChannel;
4039
import org.springframework.integration.channel.FixedSubscriberChannel;
@@ -54,7 +53,6 @@
5453
import org.springframework.integration.filter.ExpressionEvaluatingSelector;
5554
import org.springframework.integration.filter.MessageFilter;
5655
import org.springframework.integration.filter.MethodInvokingSelector;
57-
import org.springframework.integration.gateway.GatewayMessageHandler;
5856
import org.springframework.integration.handler.AbstractMessageProducingHandler;
5957
import org.springframework.integration.handler.BeanNameMessageProcessor;
6058
import org.springframework.integration.handler.BridgeHandler;
@@ -1725,15 +1723,19 @@ public B claimCheckOut(MessageStore messageStore, boolean removeMessage,
17251723
}
17261724

17271725
/**
1728-
* Populate the {@link ResequencingMessageHandler} with default options.
1726+
* Populate the
1727+
* {@link org.springframework.integration.aggregator.ResequencingMessageHandler} with
1728+
* default options.
17291729
* @return the current {@link IntegrationFlowDefinition}.
17301730
*/
17311731
public B resequence() {
17321732
return resequence(null);
17331733
}
17341734

17351735
/**
1736-
* Populate the {@link ResequencingMessageHandler} with provided options from {@link ResequencerSpec}.
1736+
* Populate the
1737+
* {@link org.springframework.integration.aggregator.ResequencingMessageHandler} with
1738+
* provided options from {@link ResequencerSpec}.
17371739
* In addition accept options for the integration endpoint using {@link GenericEndpointSpec}.
17381740
* Typically used with a Java 8 Lambda expression:
17391741
* <pre class="code">
@@ -1743,7 +1745,8 @@ public B resequence() {
17431745
* .phase(100))
17441746
* }
17451747
* </pre>
1746-
* @param resequencer the {@link Consumer} to provide {@link ResequencingMessageHandler} options.
1748+
* @param resequencer the {@link Consumer} to provide
1749+
* {@link org.springframework.integration.aggregator.ResequencingMessageHandler} options.
17471750
* @return the current {@link IntegrationFlowDefinition}.
17481751
* @see ResequencerSpec
17491752
*/
@@ -2254,8 +2257,9 @@ public <R extends AbstractMessageRouter> B route(R router, Consumer<GenericEndpo
22542257
}
22552258

22562259
/**
2257-
* Populate the "artificial" {@link GatewayMessageHandler} for the provided
2258-
* {@code requestChannel} to send a request with default options.
2260+
* Populate the "artificial"
2261+
* {@link org.springframework.integration.gateway.GatewayMessageHandler} for the
2262+
* provided {@code requestChannel} to send a request with default options.
22592263
* Uses {@link org.springframework.integration.gateway.RequestReplyExchanger} Proxy
22602264
* on the background.
22612265
* @param requestChannel the {@link MessageChannel} bean name.
@@ -2266,23 +2270,27 @@ public B gateway(String requestChannel) {
22662270
}
22672271

22682272
/**
2269-
* Populate the "artificial" {@link GatewayMessageHandler} for the provided
2270-
* {@code requestChannel} to send a request with options from {@link GatewayEndpointSpec}.
2271-
* Uses {@link org.springframework.integration.gateway.RequestReplyExchanger} Proxy
2272-
* on the background.
2273+
* Populate the "artificial"
2274+
* {@link org.springframework.integration.gateway.GatewayMessageHandler} for the
2275+
* provided {@code requestChannel} to send a request with options from
2276+
* {@link GatewayEndpointSpec}. Uses
2277+
* {@link org.springframework.integration.gateway.RequestReplyExchanger} Proxy on the
2278+
* background.
22732279
* @param requestChannel the {@link MessageChannel} bean name.
2274-
* @param endpointConfigurer the {@link Consumer} to provide integration endpoint options.
2280+
* @param endpointConfigurer the {@link Consumer} to provide integration endpoint
2281+
* options.
22752282
* @return the current {@link IntegrationFlowDefinition}.
22762283
*/
22772284
public B gateway(String requestChannel, Consumer<GatewayEndpointSpec> endpointConfigurer) {
22782285
return register(new GatewayEndpointSpec(requestChannel), endpointConfigurer);
22792286
}
22802287

22812288
/**
2282-
* Populate the "artificial" {@link GatewayMessageHandler} for the provided
2283-
* {@code requestChannel} to send a request with default options.
2284-
* Uses {@link org.springframework.integration.gateway.RequestReplyExchanger} Proxy
2285-
* on the background.
2289+
* Populate the "artificial"
2290+
* {@link org.springframework.integration.gateway.GatewayMessageHandlerGatewayMessageHandler}
2291+
* for the provided {@code requestChannel} to send a request with default options.
2292+
* Uses {@link org.springframework.integration.gateway.RequestReplyExchanger} Proxy on
2293+
* the background.
22862294
* @param requestChannel the {@link MessageChannel} to use.
22872295
* @return the current {@link IntegrationFlowDefinition}.
22882296
*/
@@ -2291,21 +2299,25 @@ public B gateway(MessageChannel requestChannel) {
22912299
}
22922300

22932301
/**
2294-
* Populate the "artificial" {@link GatewayMessageHandler} for the provided
2295-
* {@code requestChannel} to send a request with options from {@link GatewayEndpointSpec}.
2296-
* Uses {@link org.springframework.integration.gateway.RequestReplyExchanger} Proxy
2297-
* on the background.
2302+
* Populate the "artificial"
2303+
* {@link org.springframework.integration.gateway.GatewayMessageHandler} for the
2304+
* provided {@code requestChannel} to send a request with options from
2305+
* {@link GatewayEndpointSpec}. Uses
2306+
* {@link org.springframework.integration.gateway.RequestReplyExchanger} Proxy on the
2307+
* background.
22982308
* @param requestChannel the {@link MessageChannel} to use.
2299-
* @param endpointConfigurer the {@link Consumer} to provide integration endpoint options.
2309+
* @param endpointConfigurer the {@link Consumer} to provide integration endpoint
2310+
* options.
23002311
* @return the current {@link IntegrationFlowDefinition}.
23012312
*/
23022313
public B gateway(MessageChannel requestChannel, Consumer<GatewayEndpointSpec> endpointConfigurer) {
23032314
return register(new GatewayEndpointSpec(requestChannel), endpointConfigurer);
23042315
}
23052316

23062317
/**
2307-
* Populate the "artificial" {@link GatewayMessageHandler} for the provided
2308-
* {@code subflow}.
2318+
* Populate the "artificial"
2319+
* {@link org.springframework.integration.gateway.GatewayMessageHandler} for the
2320+
* provided {@code subflow}.
23092321
* Typically used with a Java 8 Lambda expression:
23102322
* <pre class="code">
23112323
* {@code
@@ -2320,8 +2332,9 @@ public B gateway(IntegrationFlow flow) {
23202332
}
23212333

23222334
/**
2323-
* Populate the "artificial" {@link GatewayMessageHandler} for the provided
2324-
* {@code subflow} with options from {@link GatewayEndpointSpec}.
2335+
* Populate the "artificial"
2336+
* {@link org.springframework.integration.gateway.GatewayMessageHandler} for the
2337+
* provided {@code subflow} with options from {@link GatewayEndpointSpec}.
23252338
* Typically used with a Java 8 Lambda expression:
23262339
* <pre class="code">
23272340
* {@code

spring-integration-core/src/main/java/org/springframework/integration/dsl/IntegrationFlows.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020

2121
import org.reactivestreams.Publisher;
2222

23-
import org.springframework.integration.annotation.MessagingGateway;
2423
import org.springframework.integration.channel.DirectChannel;
2524
import org.springframework.integration.channel.ReactiveChannel;
2625
import org.springframework.integration.core.MessageSource;
@@ -269,12 +268,13 @@ public static IntegrationFlowBuilder from(MessagingGatewaySupport inboundGateway
269268
}
270269

271270
/**
272-
* Populate the {@link MessageChannel} to the new {@link IntegrationFlowBuilder} chain,
273-
* which becomes as a {@code requestChannel} for the Messaging Gateway(s) built on the provided
274-
* service interface.
275-
* <p> A gateway proxy bean for provided service interface is registered
276-
* under a name of the {@link IntegrationFlow} bean plus {@code .gateway} suffix.
277-
* @param serviceInterface the class with a {@link MessagingGateway} annotation.
271+
* Populate the {@link MessageChannel} to the new {@link IntegrationFlowBuilder}
272+
* chain, which becomes as a {@code requestChannel} for the Messaging Gateway(s) built
273+
* on the provided service interface.
274+
* <p>A gateway proxy bean for provided service interface is registered under a name of
275+
* the {@link IntegrationFlow} bean plus {@code .gateway} suffix.
276+
* @param serviceInterface the class with a
277+
* {@link org.springframework.integration.annotation.MessagingGateway} annotation.
278278
* @return new {@link IntegrationFlowBuilder}.
279279
*/
280280
public static IntegrationFlowBuilder from(Class<?> serviceInterface) {

0 commit comments

Comments
 (0)