@@ -24,7 +24,6 @@ public class GraphQLConfiguration {
2424
2525 private final GraphQLInvocationInputFactory invocationInputFactory ;
2626 private final Supplier <BatchInputPreProcessor > batchInputPreProcessor ;
27- private final GraphQLQueryInvoker queryInvoker ;
2827 private final GraphQLInvoker graphQLInvoker ;
2928 private final GraphQLObjectMapper objectMapper ;
3029 private final List <GraphQLServletListener > listeners ;
@@ -43,7 +42,6 @@ private GraphQLConfiguration(GraphQLInvocationInputFactory invocationInputFactor
4342 Supplier <BatchInputPreProcessor > batchInputPreProcessor ,
4443 GraphQLResponseCacheManager responseCacheManager ) {
4544 this .invocationInputFactory = invocationInputFactory ;
46- this .queryInvoker = queryInvoker ;
4745 this .graphQLInvoker = queryInvoker .toGraphQLInvoker ();
4846 this .objectMapper = objectMapper ;
4947 this .listeners = listeners ;
@@ -71,10 +69,6 @@ public GraphQLInvocationInputFactory getInvocationInputFactory() {
7169 return invocationInputFactory ;
7270 }
7371
74- public GraphQLQueryInvoker getQueryInvoker () {
75- return queryInvoker ;
76- }
77-
7872 public GraphQLInvoker getGraphQLInvoker () {
7973 return graphQLInvoker ;
8074 }
@@ -113,15 +107,19 @@ public GraphQLResponseCacheManager getResponseCacheManager() {
113107
114108 public HttpRequestHandler getHttpRequestHandler () {
115109 if (requestHandler == null ) {
116- if (responseCacheManager == null ) {
117- requestHandler = new HttpRequestHandlerImpl (this );
118- } else {
119- requestHandler = new HttpRequestHandlerImpl (this , new CachingHttpRequestInvoker (this ));
120- }
110+ requestHandler = createHttpRequestHandler ();
121111 }
122112 return requestHandler ;
123113 }
124114
115+ private HttpRequestHandler createHttpRequestHandler () {
116+ if (responseCacheManager == null ) {
117+ return new HttpRequestHandlerImpl (this );
118+ } else {
119+ return new HttpRequestHandlerImpl (this , new CachingHttpRequestInvoker (this ));
120+ }
121+ }
122+
125123 public static class Builder {
126124
127125 private GraphQLInvocationInputFactory .Builder invocationInputFactoryBuilder ;
0 commit comments