This adds a AsyncProviderService that is injected into the AsyncExecutorService to decouple the AsyncExecutorService implementation from the JsonApi and QueryRunners implementations. These are now registered into the AsyncProviderService.
The AsyncQueryOperation implementations then get the providers that they need in the following manner.
This fixes the bug where an exception is thrown when elide.async.enabled is true and elide.graphql.enabled is false.
This also allows the elide-graphql dependency to be excluded without errors if GraphQL is not required.
How Has This Been Tested?
A asyncEnabledJsonApiEnabledGraphqlNotEnabled test was added to ElideAutoConfigurationTest.
This was also tested manually with the elide-spring-boot-example by manually excluding the elide-graphql dependency and exercising the asyncQuery and tableExport functionality.
License
I confirm that this contribution is made under an Apache 2.0 license and that I have the authority necessary to make this contribution on behalf of its copyright owner.
Resolves #3245
Description
This adds a
AsyncProviderService
that is injected into theAsyncExecutorService
to decouple theAsyncExecutorService
implementation from theJsonApi
andQueryRunners
implementations. These are now registered into theAsyncProviderService
.The
AsyncQueryOperation
implementations then get the providers that they need in the following manner.Motivation and Context
This fixes the bug where an exception is thrown when
elide.async.enabled
istrue
andelide.graphql.enabled
is false.This also allows the
elide-graphql
dependency to be excluded without errors if GraphQL is not required.How Has This Been Tested?
A
asyncEnabledJsonApiEnabledGraphqlNotEnabled
test was added toElideAutoConfigurationTest
.This was also tested manually with the
elide-spring-boot-example
by manually excluding theelide-graphql
dependency and exercising theasyncQuery
andtableExport
functionality.License
I confirm that this contribution is made under an Apache 2.0 license and that I have the authority necessary to make this contribution on behalf of its copyright owner.