public class PublisherAdapter<T> extends AbstractTypeSubstitutingMapper implements SchemaTransformer, OutputConverter<org.reactivestreams.Publisher<T>,Object>
substituteType| Constructor and Description |
|---|
PublisherAdapter() |
PublisherAdapter(Executor executor) |
| Modifier and Type | Method and Description |
|---|---|
Object |
convertOutput(org.reactivestreams.Publisher<T> original,
AnnotatedType type,
ResolutionEnvironment resolutionEnvironment) |
protected Object |
convertOutputForNonSubscription(org.reactivestreams.Publisher<T> original,
AnnotatedType type,
ResolutionEnvironment resolutionEnvironment) |
AnnotatedType |
getSubstituteType(AnnotatedType original)
Returns the type to map instead of the original.
|
boolean |
supports(AnnotatedType type) |
graphql.schema.GraphQLInputType |
toGraphQLInputType(AnnotatedType javaType,
OperationMapper operationMapper,
Set mappersToSkip,
BuildContext buildContext) |
graphql.schema.GraphQLFieldDefinition |
transformField(graphql.schema.GraphQLFieldDefinition field,
Operation operation,
OperationMapper operationMapper,
BuildContext buildContext) |
toGraphQLTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittransformArgument, transformArgument, transformDirective, transformInputFieldpublic PublisherAdapter()
public PublisherAdapter(Executor executor)
public graphql.schema.GraphQLInputType toGraphQLInputType(AnnotatedType javaType, OperationMapper operationMapper, Set mappersToSkip, BuildContext buildContext)
toGraphQLInputType in interface TypeMappertoGraphQLInputType in class AbstractTypeSubstitutingMapperpublic AnnotatedType getSubstituteType(AnnotatedType original)
AbstractTypeSubstitutingMapperS.getSubstituteType in interface TypeSubstitutergetSubstituteType in class AbstractTypeSubstitutingMapperoriginal - The type to be replacedpublic graphql.schema.GraphQLFieldDefinition transformField(graphql.schema.GraphQLFieldDefinition field,
Operation operation,
OperationMapper operationMapper,
BuildContext buildContext)
transformField in interface SchemaTransformerpublic Object convertOutput(org.reactivestreams.Publisher<T> original, AnnotatedType type, ResolutionEnvironment resolutionEnvironment)
convertOutput in interface OutputConverter<org.reactivestreams.Publisher<T>,Object>protected Object convertOutputForNonSubscription(org.reactivestreams.Publisher<T> original, AnnotatedType type, ResolutionEnvironment resolutionEnvironment)
public boolean supports(AnnotatedType type)
supports in interface OutputConverter<org.reactivestreams.Publisher<T>,Object>supports in interface TypeMapperCopyright © 2016–2018. All rights reserved.