|
14 | 14 | */ |
15 | 15 | package graphql.annotations; |
16 | 16 |
|
17 | | -import graphql.schema.*; |
18 | | -import graphql.schema.GraphQLType; |
19 | | - |
20 | 17 | public interface GraphQLAnnotationsProcessor { |
21 | | -// /** |
22 | | -// * @deprecated See {@link #getOutputType(Class)} |
23 | | -// */ |
24 | | -// graphql.schema.GraphQLType getInterface(Class<?> iface) throws GraphQLAnnotationsException; |
25 | | -// |
26 | | -// /** |
27 | | -// * This will examine the class and return a {@link GraphQLUnionType.Builder} ready for further definition |
28 | | -// * |
29 | | -// * @param iface interface to examine |
30 | | -// * |
31 | | -// * @return a {@link GraphQLUnionType.Builder} |
32 | | -// * |
33 | | -// * @throws GraphQLAnnotationsException if the class cannot be examined |
34 | | -// * @throws IllegalArgumentException if <code>iface</code> is not an interface |
35 | | -// */ |
36 | | -// GraphQLUnionType.Builder getUnionBuilder(Class<?> iface) throws GraphQLAnnotationsException, IllegalArgumentException; |
37 | | -// |
38 | | -// /** |
39 | | -// * This will examine the class and return a {@link GraphQLInterfaceType.Builder} ready for further definition |
40 | | -// * |
41 | | -// * @param iface interface to examine |
42 | | -// * |
43 | | -// * @return a {@link GraphQLInterfaceType.Builder} |
44 | | -// * |
45 | | -// * @throws GraphQLAnnotationsException if the class cannot be examined |
46 | | -// * @throws IllegalArgumentException if <code>iface</code> is not an interface |
47 | | -// */ |
48 | | -// GraphQLInterfaceType.Builder getIfaceBuilder(Class<?> iface) throws GraphQLAnnotationsException, IllegalArgumentException; |
49 | | -// |
50 | | -// /** |
51 | | -// * This will examine the object class and return a {@link GraphQLEnumType.Builder} ready for further definition |
52 | | -// * |
53 | | -// * @param object the object class to examine |
54 | | -// * |
55 | | -// * @return a {@link GraphQLEnumType.Builder} that represents that object class |
56 | | -// * |
57 | | -// * @throws GraphQLAnnotationsException if the object class cannot be examined |
58 | | -// */ |
59 | | -// GraphQLEnumType.Builder getEnumBuilder(Class<?> object) throws GraphQLAnnotationsException; |
60 | | -// |
61 | | -// /** |
62 | | -// * @deprecated See {@link #getOutputType(Class)} |
63 | | -// */ |
64 | | -// GraphQLObjectType getObject(Class<?> object) throws GraphQLAnnotationsException; |
65 | | -// |
66 | | -// /** |
67 | | -// * This will examine the object and will return a {@link GraphQLOutputType} based on the class type and annotations. |
68 | | -// * - If its annotated with {@link GraphQLUnion} it will return a {@link GraphQLUnionType} |
69 | | -// * - If its annotated with {@link GraphQLTypeResolver} it will return a {@link GraphQLInterfaceType} |
70 | | -// * - It it's an Enum it will return a {@link GraphQLEnumType}, |
71 | | -// * otherwise it will return a {@link GraphQLObjectType}. |
72 | | -// * |
73 | | -// * @param object the object class to examine |
74 | | -// * |
75 | | -// * @return a {@link GraphQLOutputType} that represents that object class |
76 | | -// * |
77 | | -// * @throws GraphQLAnnotationsException if the object class cannot be examined |
78 | | -// */ |
79 | | -// GraphQLOutputType getOutputType(Class<?> object) throws GraphQLAnnotationsException; |
80 | | -// |
81 | | -// /** |
82 | | -// * @deprecated See {@link #getOutputTypeOrRef(Class)} |
83 | | -// */ |
84 | | -// GraphQLOutputType getObjectOrRef(Class<?> object) throws GraphQLAnnotationsException; |
85 | | -// |
86 | | -// /** |
87 | | -// * This will examine the object class and return a {@link GraphQLOutputType} representation |
88 | | -// * which may be a {@link GraphQLOutputType} or a {@link graphql.schema.GraphQLTypeReference} |
89 | | -// * |
90 | | -// * @param object the object class to examine |
91 | | -// * |
92 | | -// * @return a {@link GraphQLOutputType} that represents that object class |
93 | | -// * |
94 | | -// * @throws GraphQLAnnotationsException if the object class cannot be examined |
95 | | -// */ |
96 | | -// GraphQLOutputType getOutputTypeOrRef(Class<?> object) throws GraphQLAnnotationsException; |
97 | | -// |
98 | | -// /** |
99 | | -// * This will examine the object class and return a {@link GraphQLObjectType.Builder} ready for further definition |
100 | | -// * |
101 | | -// * @param object the object class to examine |
102 | | -// * |
103 | | -// * @return a {@link GraphQLObjectType.Builder} that represents that object class |
104 | | -// * |
105 | | -// * @throws GraphQLAnnotationsException if the object class cannot be examined |
106 | | -// */ |
107 | | -// GraphQLObjectType.Builder getObjectBuilder(Class<?> object) throws GraphQLAnnotationsException; |
108 | | -// |
109 | | -// /** |
110 | | -// * This will examine the object class and return a {@link GraphQLInputType} representation |
111 | | -// * |
112 | | -// * @param object the object class to examine |
113 | | -// * |
114 | | -// * @return a {@link GraphQLInputType} that represents that object class |
115 | | -// * |
116 | | -// * @throws GraphQLAnnotationsException if the object class cannot be examined |
117 | | -// */ |
118 | | -// GraphQLInputObjectType getInputObject(Class<?> object) throws GraphQLAnnotationsException; |
119 | | -// |
120 | | -// /** |
121 | | -// * This will turn a {@link GraphQLObjectType} into a corresponding {@link GraphQLInputObjectType} |
122 | | -// * |
123 | | -// * @param graphQLType the graphql object type |
124 | | -// * @param newNamePrefix since graphql types MUST be unique, this prefix will be applied to the new input types |
125 | | -// * |
126 | | -// * @return a {@link GraphQLInputObjectType} |
127 | | -// */ |
128 | | -// GraphQLInputType getInputObject(GraphQLType graphQLType, String newNamePrefix); |
129 | | - |
130 | 18 | /** |
131 | 19 | * Register a new type extension class. This extension will be used when the extended object will be created. |
132 | 20 | * The class must have a {@link GraphQLTypeExtension} annotation. |
|
0 commit comments