public class EnrichmentExtension extends Object implements com.atlassian.graphql.spi.GraphQLExtensions
ApiRestEntityFactory
.Constructor and Description |
---|
EnrichmentExtension(ApiRestEntityFactory apiRestEntityFactory) |
Modifier and Type | Method and Description |
---|---|
void |
contributeFields(String typeName,
Type type,
List<graphql.schema.GraphQLFieldDefinition> fields,
com.atlassian.graphql.spi.GraphQLTypeBuilderContext context) |
String |
contributeTypeName(String typeName,
Type type,
com.atlassian.graphql.spi.GraphQLTypeBuilderContext context) |
Function<Object,Object> |
getValueTransformer(Type type,
AnnotatedElement element) |
public EnrichmentExtension(ApiRestEntityFactory apiRestEntityFactory)
public String contributeTypeName(String typeName, Type type, com.atlassian.graphql.spi.GraphQLTypeBuilderContext context)
contributeTypeName
in interface com.atlassian.graphql.spi.GraphQLExtensions
contributeTypeName
in interface com.atlassian.graphql.spi.GraphQLTypeContributor
public void contributeFields(String typeName, Type type, List<graphql.schema.GraphQLFieldDefinition> fields, com.atlassian.graphql.spi.GraphQLTypeBuilderContext context)
contributeFields
in interface com.atlassian.graphql.spi.GraphQLExtensions
contributeFields
in interface com.atlassian.graphql.spi.GraphQLTypeContributor
public Function<Object,Object> getValueTransformer(Type type, AnnotatedElement element)
getValueTransformer
in interface com.atlassian.graphql.spi.GraphQLExtensions
Copyright © 2003–2020 Atlassian. All rights reserved.