Class DataFetcherMethodGenerator
java.lang.Object
no.sikt.graphitron.generators.abstractions.AbstractSchemaMethodGenerator<ObjectField,ObjectDefinition>
no.sikt.graphitron.generators.abstractions.ResolverMethodGenerator
no.sikt.graphitron.generators.abstractions.DataFetcherMethodGenerator
- All Implemented Interfaces:
MethodGenerator
- Direct Known Subclasses:
EntityFetcherMethodGenerator,FetchNodeMethodGenerator,OperationMethodGenerator
-
Field Summary
FieldsFields inherited from class no.sikt.graphitron.generators.abstractions.AbstractSchemaMethodGenerator
dependencyMap, localObject, processedSchema -
Constructor Summary
ConstructorsConstructorDescriptionDataFetcherMethodGenerator(ObjectDefinition localObject, ProcessedSchema processedSchema) -
Method Summary
Modifier and TypeMethodDescriptionprotected CodeBlockextractParams(ObjectField target) getDefaultSpecBuilder(String methodName, TypeName returnType) protected CodeBlocktransformDTOBlock(GenerationField field, CodeBlock source) Methods inherited from class no.sikt.graphitron.generators.abstractions.ResolverMethodGenerator
createServiceDependency, declareAllServiceClasses, declareContextArgs, getMethodCall, getReturnTypeName, transformInputs, transformInputsMethods inherited from class no.sikt.graphitron.generators.abstractions.AbstractSchemaMethodGenerator
generate, getDependencyMap, getLocalObject, getLocalTable, getTypeResolverWiring, inferFieldTypeName, iterableWrapTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface no.sikt.graphitron.generators.abstractions.MethodGenerator
generateAll
-
Field Details
-
dataFetcherWiring
-
-
Constructor Details
-
DataFetcherMethodGenerator
-
-
Method Details
-
getDefaultSpecBuilder
- Overrides:
getDefaultSpecBuilderin classAbstractSchemaMethodGenerator<ObjectField,ObjectDefinition> - Parameters:
methodName- The name of the method.returnType- The return type of the method, as a javapoetTypeName.- Returns:
- The default builder for this class' methods, with any common settings applied.
-
extractParams
-
transformDTOBlock
-
getDataFetcherWiring
- Overrides:
getDataFetcherWiringin classAbstractSchemaMethodGenerator<ObjectField,ObjectDefinition> - Returns:
- Any DataFetcher wiring this generator produces.
-