Package io.smallrye.graphql.cdi.event
Class EventsService
java.lang.Object
io.smallrye.graphql.cdi.event.EventsService
- All Implemented Interfaces:
io.smallrye.graphql.spi.EventingService
@Priority(200)
public class EventsService
extends Object
implements io.smallrye.graphql.spi.EventingService
Implements the EventingService interface and use CDI Events
This allows users to take part in the events.
- Author:
- Phillip Kruger (phillip.kruger@redhat.com)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterDataFetch(io.smallrye.graphql.api.Context context) voidafterExecute(io.smallrye.graphql.api.Context context) voidbeforeDataFetch(io.smallrye.graphql.api.Context context) voidbeforeExecute(io.smallrye.graphql.api.Context context) graphql.GraphQL.BuilderbeforeGraphQLBuild(graphql.GraphQL.Builder builder) voidbeforeInvoke(io.smallrye.graphql.execution.event.InvokeInfo invokeInfo) graphql.schema.GraphQLSchema.BuilderbeforeSchemaBuild(graphql.schema.GraphQLSchema.Builder builder) io.smallrye.graphql.schema.model.OperationcreateOperation(io.smallrye.graphql.schema.model.Operation operation) voiderrorDataFetch(io.smallrye.graphql.api.Context context, Throwable t) voiderrorExecute(io.smallrye.graphql.api.Context context, Throwable t) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.smallrye.graphql.spi.EventingService
errorDataFetch, errorExecute, overrideJsonbConfig
-
Constructor Details
-
EventsService
public EventsService()
-
-
Method Details
-
beforeSchemaBuild
public graphql.schema.GraphQLSchema.Builder beforeSchemaBuild(graphql.schema.GraphQLSchema.Builder builder) - Specified by:
beforeSchemaBuildin interfaceio.smallrye.graphql.spi.EventingService
-
createOperation
public io.smallrye.graphql.schema.model.Operation createOperation(io.smallrye.graphql.schema.model.Operation operation) - Specified by:
createOperationin interfaceio.smallrye.graphql.spi.EventingService
-
beforeGraphQLBuild
public graphql.GraphQL.Builder beforeGraphQLBuild(graphql.GraphQL.Builder builder) - Specified by:
beforeGraphQLBuildin interfaceio.smallrye.graphql.spi.EventingService
-
beforeExecute
public void beforeExecute(io.smallrye.graphql.api.Context context) - Specified by:
beforeExecutein interfaceio.smallrye.graphql.spi.EventingService
-
afterExecute
public void afterExecute(io.smallrye.graphql.api.Context context) - Specified by:
afterExecutein interfaceio.smallrye.graphql.spi.EventingService
-
beforeDataFetch
public void beforeDataFetch(io.smallrye.graphql.api.Context context) - Specified by:
beforeDataFetchin interfaceio.smallrye.graphql.spi.EventingService
-
beforeInvoke
public void beforeInvoke(io.smallrye.graphql.execution.event.InvokeInfo invokeInfo) throws Exception - Specified by:
beforeInvokein interfaceio.smallrye.graphql.spi.EventingService- Throws:
Exception
-
afterDataFetch
public void afterDataFetch(io.smallrye.graphql.api.Context context) - Specified by:
afterDataFetchin interfaceio.smallrye.graphql.spi.EventingService
-
errorExecute
- Specified by:
errorExecutein interfaceio.smallrye.graphql.spi.EventingService
-
errorDataFetch
- Specified by:
errorDataFetchin interfaceio.smallrye.graphql.spi.EventingService
-
getConfigKey
- Specified by:
getConfigKeyin interfaceio.smallrye.graphql.spi.EventingService
-