Browse Source

Merge branch '6.1.x'

# Conflicts:
#	framework-platform/framework-platform.gradle
#	spring-web/src/main/java/org/springframework/http/client/reactive/JettyClientHttpConnector.java
pull/33883/head
Juergen Hoeller 1 year ago
parent
commit
25e2c1b7ce
  1. 4
      spring-context/src/main/java/org/springframework/cache/annotation/CachingConfigurer.java
  2. 5
      spring-core/src/main/java/org/springframework/core/task/SimpleAsyncTaskExecutor.java
  3. 6
      spring-tx/src/main/java/org/springframework/transaction/annotation/TransactionManagementConfigurer.java
  4. 2
      spring-web/src/main/java/org/springframework/http/client/reactive/JettyClientHttpConnector.java
  5. 34
      spring-webflux/src/main/java/org/springframework/web/reactive/socket/adapter/JettyWebSocketHandlerAdapter.java

4
spring-context/src/main/java/org/springframework/cache/annotation/CachingConfigurer.java vendored

@ -32,6 +32,10 @@ import org.springframework.lang.Nullable; @@ -32,6 +32,10 @@ import org.springframework.lang.Nullable;
* {@link #cacheManager()}, {@link #cacheResolver()}, {@link #keyGenerator()}, and
* {@link #errorHandler()} for detailed instructions.
*
* <p><b>NOTE: A {@code CachingConfigurer} will get initialized early.</b>
* Do not inject common dependencies into autowired fields directly; instead, consider
* declaring a lazy {@link org.springframework.beans.factory.ObjectProvider} for those.
*
* @author Chris Beams
* @author Stephane Nicoll
* @since 3.1

5
spring-core/src/main/java/org/springframework/core/task/SimpleAsyncTaskExecutor.java

@ -195,6 +195,11 @@ public class SimpleAsyncTaskExecutor extends CustomizableThreadCreator @@ -195,6 +195,11 @@ public class SimpleAsyncTaskExecutor extends CustomizableThreadCreator
* The default of -1 indicates no concurrency limit at all.
* <p>This is the equivalent of a maximum pool size in a thread pool,
* preventing temporary overload of the thread management system.
* However, in contrast to a thread pool with a managed task queue,
* this executor will block the submitter until the task can be
* accepted when the configured concurrency limit has been reached.
* If you prefer queue-based task hand-offs without such blocking,
* consider using a {@code ThreadPoolTaskExecutor} instead.
* @see #UNBOUNDED_CONCURRENCY
* @see org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor#setMaxPoolSize
*/

6
spring-tx/src/main/java/org/springframework/transaction/annotation/TransactionManagementConfigurer.java

@ -1,5 +1,5 @@ @@ -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.
@ -30,6 +30,10 @@ import org.springframework.transaction.TransactionManager; @@ -30,6 +30,10 @@ import org.springframework.transaction.TransactionManager;
* <p>See @{@link EnableTransactionManagement} for general examples and context;
* see {@link #annotationDrivenTransactionManager()} for detailed instructions.
*
* <p><b>NOTE: A {@code TransactionManagementConfigurer} will get initialized early.</b>
* Do not inject common dependencies into autowired fields directly; instead, consider
* declaring a lazy {@link org.springframework.beans.factory.ObjectProvider} for those.
*
* <p>Note that in by-type lookup disambiguation cases, an alternative approach to
* implementing this interface is to simply mark one of the offending
* {@code PlatformTransactionManager} {@code @Bean} methods (or

2
spring-web/src/main/java/org/springframework/http/client/reactive/JettyClientHttpConnector.java

@ -1,5 +1,5 @@ @@ -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.

34
spring-webflux/src/main/java/org/springframework/web/reactive/socket/adapter/JettyWebSocketHandlerAdapter.java

@ -287,48 +287,18 @@ public class JettyWebSocketHandlerAdapter implements Session.Listener { @@ -287,48 +287,18 @@ public class JettyWebSocketHandlerAdapter implements Session.Listener {
@Override
public ByteBufferIterator readableByteBuffers() {
ByteBufferIterator delegateIterator = this.delegate.readableByteBuffers();
return new JettyByteBufferIterator(delegateIterator);
return this.delegate.readableByteBuffers();
}
@Override
public ByteBufferIterator writableByteBuffers() {
ByteBufferIterator delegateIterator = this.delegate.writableByteBuffers();
return new JettyByteBufferIterator(delegateIterator);
return this.delegate.writableByteBuffers();
}
@Override
public String toString(int index, int length, Charset charset) {
return this.delegate.toString(index, length, charset);
}
private static class JettyByteBufferIterator implements ByteBufferIterator {
private final ByteBufferIterator delegate;
JettyByteBufferIterator(ByteBufferIterator delegate) {
Assert.notNull(delegate, "Delegate must not be null");
this.delegate = delegate;
}
@Override
public void close() {
this.delegate.close();
}
@Override
public boolean hasNext() {
return this.delegate.hasNext();
}
@Override
public ByteBuffer next() {
return this.delegate.next();
}
}
}
}

Loading…
Cancel
Save