public abstract class AbstractGraphQLSchemaProvider
extends java.lang.Object
implements graphql.servlet.GraphQLSchemaProvider
| Constructor and Description |
|---|
AbstractGraphQLSchemaProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addFieldUnlessNull(graphql.schema.GraphQLInputObjectType.Builder objectType,
graphql.schema.GraphQLInputObjectField field) |
protected void |
addFieldUnlessNull(graphql.schema.GraphQLInterfaceType.Builder objectType,
graphql.schema.GraphQLFieldDefinition field) |
protected void |
addFieldUnlessNull(graphql.schema.GraphQLObjectType.Builder objectType,
graphql.schema.GraphQLFieldDefinition field) |
protected graphql.schema.GraphQLEnumType |
enumType(java.lang.String key) |
protected abstract javax.enterprise.concurrent.ContextService |
getContextService() |
graphql.schema.GraphQLSchema |
getReadOnlySchema(javax.servlet.http.HttpServletRequest request) |
graphql.schema.GraphQLSchema |
getSchema() |
graphql.schema.GraphQLSchema |
getSchema(javax.servlet.http.HttpServletRequest request) |
protected abstract javax.transaction.TransactionManager |
getTransactionManager() |
protected graphql.schema.GraphQLInputType |
inputType(java.lang.String key) |
protected graphql.schema.GraphQLInterfaceType |
interfaceType(java.lang.String key) |
protected boolean |
isEnumTypeRegistered(graphql.schema.GraphQLEnumType enumType) |
protected boolean |
isInterfaceTypeRegistered(graphql.schema.GraphQLInterfaceType interfaceType) |
protected boolean |
isScalarTypeRegistered(graphql.schema.GraphQLScalarType scalarType) |
protected graphql.schema.GraphQLObjectType |
objectType(java.lang.String key) |
protected abstract void |
populateGraphQLSchema() |
protected void |
postConstruct() |
protected void |
registerEnumType(graphql.schema.GraphQLEnumType enumType) |
protected void |
registerEnumTypeUnlessNull(graphql.schema.GraphQLEnumType enumType) |
protected void |
registerInputType(graphql.schema.GraphQLInputType inputType) |
protected void |
registerInputTypeUnlessNull(graphql.schema.GraphQLInputType inputType) |
protected void |
registerInterfaceType(graphql.schema.GraphQLInterfaceType interfaceType) |
protected void |
registerInterfaceTypeUnlessNull(graphql.schema.GraphQLInterfaceType interfaceType) |
protected void |
registerObjectType(graphql.schema.GraphQLObjectType objectType) |
protected void |
registerObjectTypeUnlessNull(graphql.schema.GraphQLObjectType objectType) |
protected void |
registerScalarType(graphql.schema.GraphQLScalarType scalarType) |
protected void |
registerScalarTypeUnlessNull(graphql.schema.GraphQLScalarType scalarType) |
protected void |
registerStandardScalarTypes() |
protected graphql.schema.GraphQLScalarType |
scalarType(java.lang.String key) |
protected java.lang.Integer |
stringToInt(java.lang.String value) |
protected graphql.schema.DataFetcher |
wrapInTransaction(java.lang.String key,
graphql.schema.DataFetcher fetcher) |
protected graphql.schema.DataFetcher |
wrapTopLevelDataFetcher(java.lang.String key,
boolean wrapInTransaction,
ExceptingDataFetcher base) |
protected graphql.schema.DataFetcher |
wrapTopLevelRawDataFetcher(java.lang.String key,
boolean wrapInTransaction,
graphql.schema.DataFetcher fetcher) |
protected void postConstruct()
public graphql.schema.GraphQLSchema getSchema(javax.servlet.http.HttpServletRequest request)
getSchema in interface graphql.servlet.GraphQLSchemaProviderpublic graphql.schema.GraphQLSchema getSchema()
getSchema in interface graphql.servlet.GraphQLSchemaProviderpublic graphql.schema.GraphQLSchema getReadOnlySchema(javax.servlet.http.HttpServletRequest request)
getReadOnlySchema in interface graphql.servlet.GraphQLSchemaProviderprotected abstract void populateGraphQLSchema()
protected void registerStandardScalarTypes()
protected void addFieldUnlessNull(@Nonnull
graphql.schema.GraphQLInputObjectType.Builder objectType,
@Nullable
graphql.schema.GraphQLInputObjectField field)
protected void addFieldUnlessNull(@Nonnull
graphql.schema.GraphQLInterfaceType.Builder objectType,
@Nullable
graphql.schema.GraphQLFieldDefinition field)
protected void addFieldUnlessNull(@Nonnull
graphql.schema.GraphQLObjectType.Builder objectType,
@Nullable
graphql.schema.GraphQLFieldDefinition field)
protected boolean isScalarTypeRegistered(@Nonnull
graphql.schema.GraphQLScalarType scalarType)
protected void registerScalarTypeUnlessNull(@Nullable
graphql.schema.GraphQLScalarType scalarType)
protected void registerScalarType(@Nonnull
graphql.schema.GraphQLScalarType scalarType)
@Nonnull
protected graphql.schema.GraphQLScalarType scalarType(@Nonnull
java.lang.String key)
protected boolean isEnumTypeRegistered(@Nonnull
graphql.schema.GraphQLEnumType enumType)
protected void registerEnumTypeUnlessNull(@Nullable
graphql.schema.GraphQLEnumType enumType)
protected void registerEnumType(@Nonnull
graphql.schema.GraphQLEnumType enumType)
@Nonnull
protected graphql.schema.GraphQLEnumType enumType(@Nonnull
java.lang.String key)
protected boolean isInterfaceTypeRegistered(@Nonnull
graphql.schema.GraphQLInterfaceType interfaceType)
protected void registerInterfaceTypeUnlessNull(@Nullable
graphql.schema.GraphQLInterfaceType interfaceType)
protected void registerInterfaceType(@Nonnull
graphql.schema.GraphQLInterfaceType interfaceType)
@Nonnull
protected graphql.schema.GraphQLInterfaceType interfaceType(@Nonnull
java.lang.String key)
protected void registerInputTypeUnlessNull(@Nullable
graphql.schema.GraphQLInputType inputType)
protected void registerInputType(@Nonnull
graphql.schema.GraphQLInputType inputType)
@Nonnull
protected graphql.schema.GraphQLInputType inputType(@Nonnull
java.lang.String key)
protected void registerObjectTypeUnlessNull(@Nullable
graphql.schema.GraphQLObjectType objectType)
protected void registerObjectType(@Nonnull
graphql.schema.GraphQLObjectType objectType)
@Nonnull
protected graphql.schema.GraphQLObjectType objectType(@Nonnull
java.lang.String key)
@Nonnull
protected graphql.schema.DataFetcher wrapTopLevelDataFetcher(@Nonnull
java.lang.String key,
boolean wrapInTransaction,
@Nonnull
ExceptingDataFetcher base)
@Nonnull
protected graphql.schema.DataFetcher wrapTopLevelRawDataFetcher(@Nonnull
java.lang.String key,
boolean wrapInTransaction,
@Nonnull
graphql.schema.DataFetcher fetcher)
@Nonnull
protected graphql.schema.DataFetcher wrapInTransaction(@Nonnull
java.lang.String key,
@Nonnull
graphql.schema.DataFetcher fetcher)
@Nonnull protected abstract javax.transaction.TransactionManager getTransactionManager()
@Nonnull protected abstract javax.enterprise.concurrent.ContextService getContextService()
@Contract(value="null -> null; !null -> !null")
protected java.lang.Integer stringToInt(@Nullable
java.lang.String value)