Package io.smallrye.graphql.mavenplugin
Class MavenConfigFacade
- java.lang.Object
-
- io.smallrye.graphql.mavenplugin.MavenConfigFacade
-
- All Implemented Interfaces:
Config
public class MavenConfigFacade extends Object implements Config
A hack that allows to use this class a service-provider for theConfiginterface (otherwise, to have access to the MOJO's parameters, this class should have been an inner-class ofGenerateSchemaMojo, which isn't allowed for a service-provider).Parameters which are injected to the MOJO are stored in
GenerateSchemaMojoas a static field and later been wrapped by this facade.
-
-
Field Summary
-
Fields inherited from interface io.smallrye.graphql.spi.config.Config
config, configs, DEFAULT_UNWRAP_EXCEPTIONS, ERROR_EXTENSION_ALL_KNOWN, ERROR_EXTENSION_CLASSIFICATION, ERROR_EXTENSION_CODE, ERROR_EXTENSION_DESCRIPTION, ERROR_EXTENSION_EXCEPTION, ERROR_EXTENSION_QUERY_PATH, ERROR_EXTENSION_VALIDATION_ERROR_TYPE, FIELD_VISIBILITY_DEFAULT, FIELD_VISIBILITY_NO_INTROSPECTION, LOG, SERVER_ERROR_DEFAULT_MESSAGE
-
-
Constructor Summary
Constructors Constructor Description MavenConfigFacade()No-args constructor to be used by aServiceLoader.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()booleanisIncludeDirectivesInSchema()booleanisIncludeIntrospectionTypesInSchema()booleanisIncludeScalarsInSchema()booleanisIncludeSchemaDefinitionInSchema()-
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.config.Config
getConfigValue, getDefaultErrorMessage, getErrorExtensionFields, getFieldVisibility, getHideErrorMessageList, getParserMaxTokens, getParserMaxWhitespaceTokens, getQueryComplexityInstrumentation, getQueryDepthInstrumentation, getShowErrorMessageList, getUnwrapExceptions, hasParserOptions, isAllowGet, isAllowPostWithQueryParameters, isEventsEnabled, isListed, isListed, isMetricsEnabled, isParserCaptureIgnoredChars, isParserCaptureLineComments, isParserCaptureSourceLocation, isPrintDataFetcherException, isTracingEnabled, isValidationEnabled, logPayload, shouldEmitEvents, shouldHide, shouldShow, shouldUnwrapThrowable
-
-
-
-
Constructor Detail
-
MavenConfigFacade
public MavenConfigFacade()
No-args constructor to be used by aServiceLoader.
-
-
Method Detail
-
isIncludeScalarsInSchema
public boolean isIncludeScalarsInSchema()
- Specified by:
isIncludeScalarsInSchemain interfaceConfig
-
isIncludeDirectivesInSchema
public boolean isIncludeDirectivesInSchema()
- Specified by:
isIncludeDirectivesInSchemain interfaceConfig
-
isIncludeSchemaDefinitionInSchema
public boolean isIncludeSchemaDefinitionInSchema()
- Specified by:
isIncludeSchemaDefinitionInSchemain interfaceConfig
-
isIncludeIntrospectionTypesInSchema
public boolean isIncludeIntrospectionTypesInSchema()
- Specified by:
isIncludeIntrospectionTypesInSchemain interfaceConfig
-
-