|
28 | 28 | import graphql.schema.DataFetcher;
|
29 | 29 | import graphql.schema.DataFetchingEnvironment;
|
30 | 30 | import graphql.schema.DataFetchingFieldSelectionSet;
|
31 |
| -import graphql.schema.GraphQLTypeVisitor; |
32 | 31 | import org.apache.commons.logging.Log;
|
33 | 32 | import org.apache.commons.logging.LogFactory;
|
34 | 33 | import reactor.core.publisher.Flux;
|
@@ -326,50 +325,6 @@ public DataFetcher<?> scrollable() {
|
326 | 325 | return new AutoRegistrationRuntimeWiringConfigurer(factories);
|
327 | 326 | }
|
328 | 327 |
|
329 |
| - /** |
330 |
| - * Return a {@link GraphQLTypeVisitor} that auto-registers the given |
331 |
| - * Querydsl repositories for queries that do not already have a registered |
332 |
| - * {@code DataFetcher} and whose return type matches the simple name of the |
333 |
| - * repository domain type. |
334 |
| - * |
335 |
| - * <p><strong>Note:</strong> Auto-registration applies only to |
336 |
| - * {@link GraphQlRepository @GraphQlRepository}-annotated repositories. |
337 |
| - * If a repository is also an instance of {@link QuerydslBinderCustomizer}, |
338 |
| - * this is transparently detected and applied through the |
339 |
| - * {@code QuerydslDataFetcher} builder methods. |
340 |
| - * |
341 |
| - * @param executors repositories to consider for registration |
342 |
| - * @param reactiveExecutors reactive repositories to consider for registration |
343 |
| - * @return the created visitor |
344 |
| - * @deprecated in favor of {@link #autoRegistrationConfigurer(List, List)} |
345 |
| - */ |
346 |
| - @SuppressWarnings({"unchecked", "rawtypes"}) |
347 |
| - @Deprecated |
348 |
| - public static GraphQLTypeVisitor autoRegistrationTypeVisitor( |
349 |
| - List<QuerydslPredicateExecutor<?>> executors, |
350 |
| - List<ReactiveQuerydslPredicateExecutor<?>> reactiveExecutors) { |
351 |
| - |
352 |
| - Map<String, Function<Boolean, DataFetcher<?>>> factories = new HashMap<>(); |
353 |
| - |
354 |
| - for (QuerydslPredicateExecutor<?> executor : executors) { |
355 |
| - String typeName = RepositoryUtils.getGraphQlTypeName(executor); |
356 |
| - if (typeName != null) { |
357 |
| - Builder<?, ?> builder = customize(executor, QuerydslDataFetcher.builder(executor).customizer(customizer(executor))); |
358 |
| - factories.put(typeName, single -> single ? builder.single() : builder.many()); |
359 |
| - } |
360 |
| - } |
361 |
| - |
362 |
| - for (ReactiveQuerydslPredicateExecutor<?> executor : reactiveExecutors) { |
363 |
| - String typeName = RepositoryUtils.getGraphQlTypeName(executor); |
364 |
| - if (typeName != null) { |
365 |
| - ReactiveBuilder builder = customize(executor, QuerydslDataFetcher.builder(executor).customizer(customizer(executor))); |
366 |
| - factories.put(typeName, single -> single ? builder.single() : builder.many()); |
367 |
| - } |
368 |
| - } |
369 |
| - |
370 |
| - return new AutoRegistrationTypeVisitor(factories); |
371 |
| - } |
372 |
| - |
373 | 328 | @SuppressWarnings({"unchecked", "rawtypes"})
|
374 | 329 | private static Builder customize(QuerydslPredicateExecutor<?> executor, Builder builder) {
|
375 | 330 | if(executor instanceof QuerydslBuilderCustomizer<?> customizer){
|
|
0 commit comments