Package io.smallrye.graphql.spi
Interface EventingService
public interface EventingService
Some events during bootstrap and execution that allows extension
- Author:
- Phillip Kruger (phillip.kruger@redhat.com)
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidafterDataFetch(io.smallrye.graphql.api.Context context) default voidafterExecute(io.smallrye.graphql.api.Context context) default voidbeforeDataFetch(io.smallrye.graphql.api.Context context) default voidbeforeExecute(io.smallrye.graphql.api.Context context) default graphql.GraphQL.BuilderbeforeGraphQLBuild(graphql.GraphQL.Builder builder) default voidbeforeInvoke(InvokeInfo invokeInfo) default graphql.schema.GraphQLSchema.BuilderbeforeSchemaBuild(graphql.schema.GraphQLSchema.Builder builder) default io.smallrye.graphql.schema.model.OperationcreateOperation(io.smallrye.graphql.schema.model.Operation operation) default voiderrorDataFetch(io.smallrye.graphql.api.Context context, Throwable t) default voiderrorDataFetch(String executionId, Throwable t) Deprecated.default voiderrorExecute(io.smallrye.graphql.api.Context context, Throwable t) default voiderrorExecute(String executionId, Throwable t) Deprecated.useerrorExecute(Context context, Throwable t)Configuration key that controls whether this EventingService should be enabled.
-
Method Details
-
getConfigKey
String getConfigKey()Configuration key that controls whether this EventingService should be enabled. If this is null, then this service will be active always when it's detected. -
beforeSchemaBuild
default graphql.schema.GraphQLSchema.Builder beforeSchemaBuild(graphql.schema.GraphQLSchema.Builder builder) -
createOperation
default io.smallrye.graphql.schema.model.Operation createOperation(io.smallrye.graphql.schema.model.Operation operation) -
overrideJsonbConfig
-
beforeGraphQLBuild
default graphql.GraphQL.Builder beforeGraphQLBuild(graphql.GraphQL.Builder builder) -
beforeExecute
default void beforeExecute(io.smallrye.graphql.api.Context context) -
afterExecute
default void afterExecute(io.smallrye.graphql.api.Context context) -
errorExecute
Deprecated.useerrorExecute(Context context, Throwable t) -
errorExecute
-
beforeDataFetch
default void beforeDataFetch(io.smallrye.graphql.api.Context context) -
beforeInvoke
- Throws:
Exception
-
afterDataFetch
default void afterDataFetch(io.smallrye.graphql.api.Context context) -
errorDataFetch
Deprecated.useerrorDataFetch(Context context, Throwable t) -
errorDataFetch
-
errorDataFetch(Context context, Throwable t)