Package graphql.kickstart.annotations
Class GraphQLInterfaceTypeResolver
java.lang.Object
graphql.kickstart.annotations.GraphQLInterfaceTypeResolver
- All Implemented Interfaces:
graphql.schema.TypeResolver,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
public class GraphQLInterfaceTypeResolver
extends Object
implements graphql.schema.TypeResolver, org.springframework.context.ApplicationContextAware
Type resolver for GraphQL interfaces.
- See Also:
-
- Issue with
workaround.
Apply this interface to GraphQL interfaces using the graphql.annotations.annotationTypes.GraphQLTypeResolver annotation.
- Issue with
workaround.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongraphql.schema.GraphQLObjectTypegetType(graphql.TypeResolutionEnvironment env) voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)
-
Constructor Details
-
GraphQLInterfaceTypeResolver
public GraphQLInterfaceTypeResolver()
-
-
Method Details
-
getType
public graphql.schema.GraphQLObjectType getType(graphql.TypeResolutionEnvironment env) - Specified by:
getTypein interfacegraphql.schema.TypeResolver
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware
-