Skip to content

Commit

Permalink
Keep constructor overload for SchemaProvider because there is some ex…
Browse files Browse the repository at this point in the history
…plicit use of this class in tests.
  • Loading branch information
paulbakker committed Dec 14, 2024
1 parent 7d4d694 commit a95aecf
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,24 @@ class DgsSchemaProvider(
private val schemaWiringValidationEnabled: Boolean = true,
private val enableEntityFetcherCustomScalarParsing: Boolean = false,
) {

@Suppress("UNUSED_PARAMETER")
@Deprecated("The mockProviders argument is no longer supported")
constructor(applicationContext: ApplicationContext,
federationResolver: Optional<DgsFederationResolver>,
existingTypeDefinitionRegistry: Optional<TypeDefinitionRegistry>,
mockProviders: Set<Any>,
schemaLocations: List<String> = listOf(DEFAULT_SCHEMA_LOCATION),
dataFetcherResultProcessors: List<DataFetcherResultProcessor> = emptyList(),
dataFetcherExceptionHandler: Optional<DataFetcherExceptionHandler> = Optional.empty(),
entityFetcherRegistry: EntityFetcherRegistry = EntityFetcherRegistry(),
defaultDataFetcherFactory: Optional<DataFetcherFactory<*>> = Optional.empty(),
methodDataFetcherFactory: MethodDataFetcherFactory,
componentFilter: ((Any) -> Boolean)? = null,
schemaWiringValidationEnabled: Boolean = true,
enableEntityFetcherCustomScalarParsing: Boolean = false,): this(applicationContext, federationResolver, existingTypeDefinitionRegistry, schemaLocations, dataFetcherResultProcessors, dataFetcherExceptionHandler, entityFetcherRegistry,
defaultDataFetcherFactory, methodDataFetcherFactory, componentFilter, schemaWiringValidationEnabled, enableEntityFetcherCustomScalarParsing)

private val dataFetcherInfo = AtomicReference(DataFetcherInfo(emptyList(), emptySet(), emptySet()))

/**
Expand Down

0 comments on commit a95aecf

Please sign in to comment.