Package io.smallrye.graphql.spi.config
Interface Config
public interface Config
This will load the config service
Example, using microprofile config
- Author:
- Phillip Kruger (phillip.kruger@redhat.com)
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic Configget()default <T> TgetConfigValue(String key, Class<T> type, T defaultValue) default Stringdefault StringgetName()default booleanstatic Configinit()default booleandefault booleandefault booleandefault booleandefault booleandefault booleandefault booleandefault booleandefault booleandefault booleandefault booleandefault booleandefault booleandefault booleandefault booleandefault LogPayloadOptiondefault booleandefault booleanshouldHide(Throwable throwable) default booleanshouldShow(Throwable throwable) default boolean
-
Field Details
-
LOG
static final org.jboss.logging.Logger LOG -
config
-
SERVER_ERROR_DEFAULT_MESSAGE
- See Also:
-
FIELD_VISIBILITY_DEFAULT
- See Also:
-
FIELD_VISIBILITY_NO_INTROSPECTION
- See Also:
-
ERROR_EXTENSION_EXCEPTION
- See Also:
-
ERROR_EXTENSION_CLASSIFICATION
- See Also:
-
ERROR_EXTENSION_CODE
- See Also:
-
ERROR_EXTENSION_DESCRIPTION
- See Also:
-
ERROR_EXTENSION_VALIDATION_ERROR_TYPE
- See Also:
-
ERROR_EXTENSION_QUERY_PATH
- See Also:
-
ERROR_EXTENSION_ALL_KNOWN
-
DEFAULT_UNWRAP_EXCEPTIONS
-
-
Method Details
-
init
-
get
-
getName
String getName() -
getDefaultErrorMessage
-
isPrintDataFetcherException
default boolean isPrintDataFetcherException() -
getHideErrorMessageList
-
getShowErrorMessageList
-
shouldHide
-
shouldShow
-
isListed
-
isListed
-
getUnwrapExceptions
-
shouldUnwrapThrowable
-
isAllowGet
default boolean isAllowGet() -
isAllowPostWithQueryParameters
default boolean isAllowPostWithQueryParameters() -
isIncludeScalarsInSchema
default boolean isIncludeScalarsInSchema() -
isIncludeDirectivesInSchema
default boolean isIncludeDirectivesInSchema() -
isIncludeSchemaDefinitionInSchema
default boolean isIncludeSchemaDefinitionInSchema() -
isIncludeIntrospectionTypesInSchema
default boolean isIncludeIntrospectionTypesInSchema() -
isTracingEnabled
default boolean isTracingEnabled() -
isMetricsEnabled
default boolean isMetricsEnabled() -
isEventsEnabled
default boolean isEventsEnabled() -
shouldEmitEvents
default boolean shouldEmitEvents() -
isFederationEnabled
default boolean isFederationEnabled() -
isFederationBatchResolvingEnabled
default boolean isFederationBatchResolvingEnabled() -
logPayload
-
isParserCaptureIgnoredChars
-
isParserCaptureLineComments
-
isParserCaptureSourceLocation
-
getParserMaxTokens
-
getParserMaxWhitespaceTokens
-
hasParserOptions
default boolean hasParserOptions() -
getQueryComplexityInstrumentation
-
getQueryDepthInstrumentation
-
isExcludeNullFieldsInResponses
default boolean isExcludeNullFieldsInResponses() -
getFieldVisibility
-
getErrorExtensionFields
-
getConfigValue
-