Skip to content

Commit 8155b28

Browse files
committed
DATACMNS-836 - Move reactive wrapper converters to ReactiveWrapperConverters.
Move reactive wrapper conversion to ReactiveWrapperConverters to minimize touching points with reactive APIs. ReactiveWrapperConverters is used only from reactive repository components and does not initialize with blocking API use. This removes the need of having Project Reactor on the class path for non-reactive use.
1 parent b10b22a commit 8155b28

File tree

5 files changed

+672
-661
lines changed

5 files changed

+672
-661
lines changed

src/main/java/org/springframework/data/repository/core/support/QueryExecutionResultHandler.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import org.springframework.core.convert.support.GenericConversionService;
2424
import org.springframework.data.repository.util.NullableWrapper;
2525
import org.springframework.data.repository.util.QueryExecutionConverters;
26+
import org.springframework.data.repository.util.ReactiveWrapperConverters;
2627

2728
/**
2829
* Simple domain service to convert query results into a dedicated type.
@@ -43,6 +44,7 @@ public QueryExecutionResultHandler() {
4344

4445
GenericConversionService conversionService = new DefaultConversionService();
4546
QueryExecutionConverters.registerConvertersIn(conversionService);
47+
ReactiveWrapperConverters.registerConvertersIn(conversionService);
4648

4749
this.conversionService = conversionService;
4850
}

0 commit comments

Comments
 (0)