public class GraphQLAnnotations extends java.lang.Object implements GraphQLAnnotationsProcessor
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NOT_PROPERLY_ANNOTATION_ERROR |
| Constructor and Description |
|---|
GraphQLAnnotations() |
GraphQLAnnotations(TypeFunction defaultTypeFunction,
GraphQLObjectHandler graphQLObjectHandler,
GraphQLExtensionsHandler graphQLExtensionsHandler) |
| Modifier and Type | Method and Description |
|---|---|
graphql.schema.GraphQLDirective |
directive(java.lang.Class<?> object) |
java.util.Set<graphql.schema.GraphQLDirective> |
directives(java.lang.Class<?> directivesDeclarationClass) |
graphql.schema.GraphQLDirective |
directiveViaAnnotation(java.lang.Class<?> annotationClass) |
graphql.schema.GraphQLInterfaceType |
generateInterface(java.lang.Class<?> object) |
ProcessingElementsContainer |
getContainer() |
GraphQLExtensionsHandler |
getExtensionsHandler() |
GraphQLObjectHandler |
getObjectHandler() |
java.lang.String |
getTypeName(java.lang.Class<?> objectClass) |
java.util.Map<java.lang.String,graphql.schema.GraphQLType> |
getTypeRegistry() |
graphql.schema.GraphQLObjectType |
object(java.lang.Class<?> object) |
graphql.schema.GraphQLObjectType |
object(java.lang.Class<?> object,
DirectiveAndWiring... directives)
Deprecated.
|
void |
register(TypeFunction typeFunction)
Deprecated.
|
void |
registerTypeExtension(java.lang.Class<?> objectClass)
Register a new type extension class.
|
void |
registerTypeFunction(TypeFunction typeFunction)
Allows you to register a new type function
|
void |
setContainer(ProcessingElementsContainer container) |
void |
setDefaultTypeFunction(TypeFunction function) |
void |
setRelay(graphql.relay.Relay relay)
Allows you to set a custom relay object
|
public static final java.lang.String NOT_PROPERLY_ANNOTATION_ERROR
public GraphQLAnnotations()
public GraphQLAnnotations(TypeFunction defaultTypeFunction, GraphQLObjectHandler graphQLObjectHandler, GraphQLExtensionsHandler graphQLExtensionsHandler)
public void setRelay(graphql.relay.Relay relay)
GraphQLAnnotationsProcessorsetRelay in interface GraphQLAnnotationsProcessorrelay - The extension class to registerpublic java.lang.String getTypeName(java.lang.Class<?> objectClass)
public graphql.schema.GraphQLInterfaceType generateInterface(java.lang.Class<?> object)
throws GraphQLAnnotationsException
GraphQLAnnotationsExceptionpublic graphql.schema.GraphQLObjectType object(java.lang.Class<?> object)
throws GraphQLAnnotationsException
GraphQLAnnotationsException@Deprecated
public graphql.schema.GraphQLObjectType object(java.lang.Class<?> object,
DirectiveAndWiring... directives)
throws GraphQLAnnotationsException
GraphQLAnnotationsExceptionpublic graphql.schema.GraphQLDirective directive(java.lang.Class<?> object)
throws GraphQLAnnotationsException
GraphQLAnnotationsExceptionpublic graphql.schema.GraphQLDirective directiveViaAnnotation(java.lang.Class<?> annotationClass)
public java.util.Set<graphql.schema.GraphQLDirective> directives(java.lang.Class<?> directivesDeclarationClass)
public void registerTypeExtension(java.lang.Class<?> objectClass)
GraphQLAnnotationsProcessorGraphQLTypeExtension annotation.registerTypeExtension in interface GraphQLAnnotationsProcessorobjectClass - The extension class to registerpublic void registerTypeFunction(TypeFunction typeFunction)
GraphQLAnnotationsProcessorregisterTypeFunction in interface GraphQLAnnotationsProcessortypeFunction - The extension class to register@Deprecated public void register(TypeFunction typeFunction)
public java.util.Map<java.lang.String,graphql.schema.GraphQLType> getTypeRegistry()
public GraphQLObjectHandler getObjectHandler()
public GraphQLExtensionsHandler getExtensionsHandler()
public ProcessingElementsContainer getContainer()
public void setContainer(ProcessingElementsContainer container)
public void setDefaultTypeFunction(TypeFunction function)