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 Details

    • EventsService

      public EventsService()
  • Method Details

    • beforeSchemaBuild

      public graphql.schema.GraphQLSchema.Builder beforeSchemaBuild(graphql.schema.GraphQLSchema.Builder builder)
      Specified by:
      beforeSchemaBuild in interface io.smallrye.graphql.spi.EventingService
    • createOperation

      public io.smallrye.graphql.schema.model.Operation createOperation(io.smallrye.graphql.schema.model.Operation operation)
      Specified by:
      createOperation in interface io.smallrye.graphql.spi.EventingService
    • beforeGraphQLBuild

      public graphql.GraphQL.Builder beforeGraphQLBuild(graphql.GraphQL.Builder builder)
      Specified by:
      beforeGraphQLBuild in interface io.smallrye.graphql.spi.EventingService
    • beforeExecute

      public void beforeExecute(io.smallrye.graphql.api.Context context)
      Specified by:
      beforeExecute in interface io.smallrye.graphql.spi.EventingService
    • afterExecute

      public void afterExecute(io.smallrye.graphql.api.Context context)
      Specified by:
      afterExecute in interface io.smallrye.graphql.spi.EventingService
    • beforeDataFetch

      public void beforeDataFetch(io.smallrye.graphql.api.Context context)
      Specified by:
      beforeDataFetch in interface io.smallrye.graphql.spi.EventingService
    • beforeInvoke

      public void beforeInvoke(io.smallrye.graphql.execution.event.InvokeInfo invokeInfo) throws Exception
      Specified by:
      beforeInvoke in interface io.smallrye.graphql.spi.EventingService
      Throws:
      Exception
    • afterDataFetch

      public void afterDataFetch(io.smallrye.graphql.api.Context context)
      Specified by:
      afterDataFetch in interface io.smallrye.graphql.spi.EventingService
    • errorExecute

      public void errorExecute(io.smallrye.graphql.api.Context context, Throwable t)
      Specified by:
      errorExecute in interface io.smallrye.graphql.spi.EventingService
    • errorDataFetch

      public void errorDataFetch(io.smallrye.graphql.api.Context context, Throwable t)
      Specified by:
      errorDataFetch in interface io.smallrye.graphql.spi.EventingService
    • getConfigKey

      public String getConfigKey()
      Specified by:
      getConfigKey in interface io.smallrye.graphql.spi.EventingService