|
5 | 5 | */ |
6 | 6 | package org.hibernate.reactive.sql.results.graph; |
7 | 7 |
|
8 | | -import java.lang.invoke.MethodHandles; |
9 | 8 | import java.util.concurrent.CompletionStage; |
10 | 9 |
|
11 | 10 | import org.hibernate.Incubating; |
12 | 11 | import org.hibernate.reactive.logging.impl.Log; |
13 | | -import org.hibernate.reactive.logging.impl.LoggerFactory; |
14 | 12 | import org.hibernate.reactive.sql.exec.spi.ReactiveRowProcessingState; |
15 | 13 | import org.hibernate.sql.results.graph.DomainResultAssembler; |
16 | 14 | import org.hibernate.sql.results.jdbc.spi.JdbcValuesSourceProcessingOptions; |
17 | 15 | import org.hibernate.sql.results.jdbc.spi.RowProcessingState; |
18 | 16 |
|
| 17 | +import static java.lang.invoke.MethodHandles.lookup; |
| 18 | +import static org.hibernate.reactive.logging.impl.LoggerFactory.make; |
| 19 | + |
19 | 20 | @Incubating |
20 | 21 | public interface ReactiveDomainResultsAssembler<J> extends DomainResultAssembler<J> { |
21 | 22 |
|
22 | | - Log LOG = LoggerFactory.make( Log.class, MethodHandles.lookup() ); |
23 | | - |
24 | 23 | @Override |
25 | 24 | default J assemble(RowProcessingState rowProcessingState) { |
26 | | - throw LOG.nonReactiveMethodCall( "reactiveAssemble" ); |
| 25 | + throw make( Log.class, lookup() ) |
| 26 | + .nonReactiveMethodCall( "reactiveAssemble" ); |
27 | 27 | } |
28 | 28 |
|
29 | 29 | @Override |
30 | 30 | default J assemble(RowProcessingState rowProcessingState, JdbcValuesSourceProcessingOptions options) { |
31 | | - throw LOG.nonReactiveMethodCall( "reactiveAssemble" ); |
| 31 | + throw make( Log.class, lookup() ) |
| 32 | + .nonReactiveMethodCall( "reactiveAssemble" ); |
32 | 33 | } |
33 | 34 |
|
34 | 35 | CompletionStage<J> reactiveAssemble( |
|
0 commit comments