Package io.smallrye.graphql.cdi.event
Class EventsService
- java.lang.Object
-
- io.smallrye.graphql.cdi.event.EventsService
-
- All Implemented Interfaces:
EventingService
@Priority(200) public class EventsService extends Object implements 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 Constructor Description EventsService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterDataFetch(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(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)StringgetConfigKey()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.smallrye.graphql.spi.EventingService
errorDataFetch, errorExecute, overrideJsonbConfig
-
-
-
-
Method Detail
-
beforeSchemaBuild
public graphql.schema.GraphQLSchema.Builder beforeSchemaBuild(graphql.schema.GraphQLSchema.Builder builder)
- Specified by:
beforeSchemaBuildin interfaceEventingService
-
createOperation
public io.smallrye.graphql.schema.model.Operation createOperation(io.smallrye.graphql.schema.model.Operation operation)
- Specified by:
createOperationin interfaceEventingService
-
beforeGraphQLBuild
public graphql.GraphQL.Builder beforeGraphQLBuild(graphql.GraphQL.Builder builder)
- Specified by:
beforeGraphQLBuildin interfaceEventingService
-
beforeExecute
public void beforeExecute(io.smallrye.graphql.api.Context context)
- Specified by:
beforeExecutein interfaceEventingService
-
afterExecute
public void afterExecute(io.smallrye.graphql.api.Context context)
- Specified by:
afterExecutein interfaceEventingService
-
beforeDataFetch
public void beforeDataFetch(io.smallrye.graphql.api.Context context)
- Specified by:
beforeDataFetchin interfaceEventingService
-
beforeInvoke
public void beforeInvoke(InvokeInfo invokeInfo) throws Exception
- Specified by:
beforeInvokein interfaceEventingService- Throws:
Exception
-
afterDataFetch
public void afterDataFetch(io.smallrye.graphql.api.Context context)
- Specified by:
afterDataFetchin interfaceEventingService
-
errorExecute
public void errorExecute(io.smallrye.graphql.api.Context context, Throwable t)- Specified by:
errorExecutein interfaceEventingService
-
errorDataFetch
public void errorDataFetch(io.smallrye.graphql.api.Context context, Throwable t)- Specified by:
errorDataFetchin interfaceEventingService
-
getConfigKey
public String getConfigKey()
- Specified by:
getConfigKeyin interfaceEventingService
-
-