Class LiftwizardGraphQLBundle<T extends io.dropwizard.Configuration & GraphQLFactoryProvider>
- java.lang.Object
-
- com.smoketurner.dropwizard.graphql.GraphQLBundle<T>
-
- io.liftwizard.dropwizard.bundle.graphql.LiftwizardGraphQLBundle<T>
-
- All Implemented Interfaces:
com.smoketurner.dropwizard.graphql.GraphQLConfiguration<T>,io.dropwizard.ConfiguredBundle<T>
public class LiftwizardGraphQLBundle<T extends io.dropwizard.Configuration & GraphQLFactoryProvider> extends com.smoketurner.dropwizard.graphql.GraphQLBundle<T>The bundle registers the GraphIQL UI at /graphiql and the GraphQL Playground UI at /graphql-playground, by delegating to AssetsBundle. This overrides the behavior of the smoketurner bundleGraphQLBundle, which registers just one UI (graphiql in older versions, and graphql-playground in newer versions) and registers the UI at the root.The bundle also registers two instrumentations for logging and metrics.
-
-
Constructor Summary
Constructors Constructor Description LiftwizardGraphQLBundle(Consumer<graphql.schema.idl.RuntimeWiring.Builder> runtimeWiringBuilder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.smoketurner.dropwizard.graphql.GraphQLFactorygetGraphQLFactory(T configuration)voidinitialize(io.dropwizard.setup.Bootstrap<?> bootstrap)
-
-
-
Constructor Detail
-
LiftwizardGraphQLBundle
public LiftwizardGraphQLBundle(@Nonnull Consumer<graphql.schema.idl.RuntimeWiring.Builder> runtimeWiringBuilder)
-
-
Method Detail
-
initialize
public void initialize(@Nonnull io.dropwizard.setup.Bootstrap<?> bootstrap)- Specified by:
initializein interfaceio.dropwizard.ConfiguredBundle<T extends io.dropwizard.Configuration & GraphQLFactoryProvider>- Overrides:
initializein classcom.smoketurner.dropwizard.graphql.GraphQLBundle<T extends io.dropwizard.Configuration & GraphQLFactoryProvider>
-
getGraphQLFactory
@Nonnull public com.smoketurner.dropwizard.graphql.GraphQLFactory getGraphQLFactory(@Nonnull T configuration)
-
-