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 ([email protected])
-
-
Constructor Summary
Constructors Constructor Description EventsService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterDataFetch(io.smallrye.graphql.api.Context context)
void
afterExecute(io.smallrye.graphql.api.Context context)
void
beforeDataFetch(io.smallrye.graphql.api.Context context)
void
beforeExecute(io.smallrye.graphql.api.Context context)
graphql.GraphQL.Builder
beforeGraphQLBuild(graphql.GraphQL.Builder builder)
void
beforeInvoke(InvokeInfo invokeInfo)
graphql.schema.GraphQLSchema.Builder
beforeSchemaBuild(graphql.schema.GraphQLSchema.Builder builder)
io.smallrye.graphql.schema.model.Operation
createOperation(io.smallrye.graphql.schema.model.Operation operation)
void
errorDataFetch(io.smallrye.graphql.api.Context context, Throwable t)
void
errorExecute(io.smallrye.graphql.api.Context context, Throwable t)
String
getConfigKey()
-
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:
beforeSchemaBuild
in interfaceEventingService
-
createOperation
public io.smallrye.graphql.schema.model.Operation createOperation(io.smallrye.graphql.schema.model.Operation operation)
- Specified by:
createOperation
in interfaceEventingService
-
beforeGraphQLBuild
public graphql.GraphQL.Builder beforeGraphQLBuild(graphql.GraphQL.Builder builder)
- Specified by:
beforeGraphQLBuild
in interfaceEventingService
-
beforeExecute
public void beforeExecute(io.smallrye.graphql.api.Context context)
- Specified by:
beforeExecute
in interfaceEventingService
-
afterExecute
public void afterExecute(io.smallrye.graphql.api.Context context)
- Specified by:
afterExecute
in interfaceEventingService
-
beforeDataFetch
public void beforeDataFetch(io.smallrye.graphql.api.Context context)
- Specified by:
beforeDataFetch
in interfaceEventingService
-
beforeInvoke
public void beforeInvoke(InvokeInfo invokeInfo) throws Exception
- Specified by:
beforeInvoke
in interfaceEventingService
- Throws:
Exception
-
afterDataFetch
public void afterDataFetch(io.smallrye.graphql.api.Context context)
- Specified by:
afterDataFetch
in interfaceEventingService
-
errorExecute
public void errorExecute(io.smallrye.graphql.api.Context context, Throwable t)
- Specified by:
errorExecute
in interfaceEventingService
-
errorDataFetch
public void errorDataFetch(io.smallrye.graphql.api.Context context, Throwable t)
- Specified by:
errorDataFetch
in interfaceEventingService
-
getConfigKey
public String getConfigKey()
- Specified by:
getConfigKey
in interfaceEventingService
-
-