3
3
import graphql .Internal ;
4
4
import graphql .language .NamedNode ;
5
5
import graphql .language .NodeParentTree ;
6
- import graphql .schema .*;
6
+ import graphql .schema .DataFetcher ;
7
+ import graphql .schema .FieldCoordinates ;
8
+ import graphql .schema .GraphQLCodeRegistry ;
9
+ import graphql .schema .GraphQLDirective ;
10
+ import graphql .schema .GraphQLDirectiveContainer ;
11
+ import graphql .schema .GraphQLFieldDefinition ;
12
+ import graphql .schema .GraphQLFieldsContainer ;
13
+ import graphql .schema .GraphqlElementParentTree ;
7
14
import graphql .schema .idl .SchemaDirectiveWiringEnvironment ;
8
15
import graphql .schema .idl .TypeDefinitionRegistry ;
9
16
import graphql .util .FpKit ;
17
24
/*
18
25
* DO NOT EDIT THIS FILE!
19
26
*
20
- * File copied from com.graphql-java.graphql-java:15.0 without any changes.
27
+ * File copied from com.graphql-java.graphql-java:16.1 without any changes.
21
28
*/
22
29
@ Internal
23
30
public class SchemaDirectiveWiringEnvironmentImpl <T extends GraphQLDirectiveContainer > implements SchemaDirectiveWiringEnvironment <T > {
24
31
25
32
private final T element ;
26
33
private final Map <String , GraphQLDirective > directives ;
27
- private final NodeParentTree <NamedNode > nodeParentTree ;
34
+ private final NodeParentTree <NamedNode <?> > nodeParentTree ;
28
35
private final TypeDefinitionRegistry typeDefinitionRegistry ;
29
36
private final Map <String , Object > context ;
30
37
private final GraphQLCodeRegistry .Builder codeRegistry ;
@@ -33,12 +40,7 @@ public class SchemaDirectiveWiringEnvironmentImpl<T extends GraphQLDirectiveCont
33
40
private final GraphQLFieldDefinition fieldDefinition ;
34
41
private final GraphQLDirective registeredDirective ;
35
42
36
- public SchemaDirectiveWiringEnvironmentImpl (
37
- T element ,
38
- List <GraphQLDirective > directives ,
39
- GraphQLDirective registeredDirective ,
40
- SchemaGeneratorDirectiveHelper .Parameters parameters
41
- ) {
43
+ public SchemaDirectiveWiringEnvironmentImpl (T element , List <GraphQLDirective > directives , GraphQLDirective registeredDirective , SchemaGeneratorDirectiveHelper .Parameters parameters ) {
42
44
this .element = element ;
43
45
this .registeredDirective = registeredDirective ;
44
46
this .typeDefinitionRegistry = parameters .getTypeRegistry ();
@@ -77,7 +79,7 @@ public boolean containsDirective(String directiveName) {
77
79
}
78
80
79
81
@ Override
80
- public NodeParentTree <NamedNode > getNodeParentTree () {
82
+ public NodeParentTree <NamedNode <?> > getNodeParentTree () {
81
83
return nodeParentTree ;
82
84
}
83
85
@@ -112,14 +114,14 @@ public GraphQLFieldDefinition getFieldDefinition() {
112
114
}
113
115
114
116
@ Override
115
- public DataFetcher getFieldDataFetcher () {
117
+ public DataFetcher <?> getFieldDataFetcher () {
116
118
assertNotNull (fieldDefinition , () -> "An output field must be in context to call this method" );
117
119
assertNotNull (fieldsContainer , () -> "An output field container must be in context to call this method" );
118
120
return codeRegistry .getDataFetcher (fieldsContainer , fieldDefinition );
119
121
}
120
122
121
123
@ Override
122
- public GraphQLFieldDefinition setFieldDataFetcher (DataFetcher newDataFetcher ) {
124
+ public GraphQLFieldDefinition setFieldDataFetcher (DataFetcher <?> newDataFetcher ) {
123
125
assertNotNull (fieldDefinition , () -> "An output field must be in context to call this method" );
124
126
assertNotNull (fieldsContainer , () -> "An output field container must be in context to call this method" );
125
127
0 commit comments