Class GraphQLClients
java.lang.Object
com.codename1.io.graphql.GraphQLClients
Runtime registry that wires @GraphQLClient-annotated interfaces
to the build-time-generated implementations. The generated
cn1app.GraphQLClientBootstrap calls register(Class, Factory)
for every GraphQL interface in the project; user code reaches them
via the static of(String endpoint) factory that
cn1:generate-graphql puts on each interface, and that factory in
turn calls create(Class, String) here.
Mirrors RestClients and
GrpcClients.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceFactory the generated bootstrap registers per API interface. -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> TReturns a freshly-built client for the requested API bound toendpoint(the GraphQL HTTP endpoint URL).static <T> voidregister(Class<T> apiType, GraphQLClients.Factory<T> factory) Registers a factory for a@GraphQLClient-annotated interface.
-
Method Details
-
register
Registers a factory for a@GraphQLClient-annotated interface. -
create
-