Package graphql.schema
Class TypeResolverProxy
- java.lang.Object
-
- graphql.schema.TypeResolverProxy
-
- All Implemented Interfaces:
TypeResolver
public class TypeResolverProxy extends java.lang.Object implements TypeResolver
-
-
Constructor Summary
Constructors Constructor Description TypeResolverProxy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GraphQLObjectType
getType(TypeResolutionEnvironment env)
This call back is invoked passing in a context object to allow you to know what type to use dynamically during runtime forGraphQLInterfaceType
s andGraphQLUnionType
sTypeResolver
getTypeResolver()
void
setTypeResolver(TypeResolver typeResolver)
-
-
-
Method Detail
-
getTypeResolver
public TypeResolver getTypeResolver()
-
setTypeResolver
public void setTypeResolver(TypeResolver typeResolver)
-
getType
public GraphQLObjectType getType(TypeResolutionEnvironment env)
Description copied from interface:TypeResolver
This call back is invoked passing in a context object to allow you to know what type to use dynamically during runtime forGraphQLInterfaceType
s andGraphQLUnionType
s- Specified by:
getType
in interfaceTypeResolver
- Parameters:
env
- the runtime environment- Returns:
- a graphql object type to use based on examining the environment
-
-