Skip to content

Commit 180309a

Browse files
author
Thomas Draier
committed
Added registration/unregistration methods in interface
1 parent aa8b5f1 commit 180309a

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/main/java/graphql/annotations/GraphQLAnnotationsProcessor.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,4 +102,20 @@ public interface GraphQLAnnotationsProcessor {
102102
* @return a {@link GraphQLInputObjectType}
103103
*/
104104
GraphQLInputObjectType getInputObject(GraphQLObjectType graphQLType, String newNamePrefix);
105+
106+
/**
107+
* Register a new type extension class. This extension will be used when the extended object will be created.
108+
* The class must have a {@link GraphQLTypeExtension} annotation.
109+
*
110+
* @param objectClass The extension class to register
111+
*/
112+
void registerTypeExtension(Class<?> objectClass);
113+
114+
/**
115+
* Unregister a type extension class.
116+
*
117+
* @param objectClass The extension class to unregister
118+
*/
119+
void unregisterTypeExtension(Class<?> objectClass);
120+
105121
}

0 commit comments

Comments
 (0)