Interface Config


public interface Config
This will load the config service Example, using microprofile config
Author:
Phillip Kruger (phillip.kruger@redhat.com)
  • Field Details

  • Method Details

    • init

      static Config init()
    • get

      static Config get()
    • getName

      String getName()
    • getDefaultErrorMessage

      default String getDefaultErrorMessage()
    • isPrintDataFetcherException

      default boolean isPrintDataFetcherException()
    • getHideErrorMessageList

      default Optional<List<String>> getHideErrorMessageList()
    • getShowErrorMessageList

      default Optional<List<String>> getShowErrorMessageList()
    • shouldHide

      default boolean shouldHide(Throwable throwable)
    • shouldShow

      default boolean shouldShow(Throwable throwable)
    • isListed

      default boolean isListed(Throwable throwable, List<String> classNames)
    • isListed

      default boolean isListed(Class throwableClass, List<String> classNames)
    • getUnwrapExceptions

      default Optional<List<String>> getUnwrapExceptions()
    • shouldUnwrapThrowable

      default boolean shouldUnwrapThrowable(Throwable t)
    • 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

      default LogPayloadOption logPayload()
    • isParserCaptureIgnoredChars

      default Optional<Boolean> isParserCaptureIgnoredChars()
    • isParserCaptureLineComments

      default Optional<Boolean> isParserCaptureLineComments()
    • isParserCaptureSourceLocation

      default Optional<Boolean> isParserCaptureSourceLocation()
    • getParserMaxTokens

      default Optional<Integer> getParserMaxTokens()
    • getParserMaxWhitespaceTokens

      default Optional<Integer> getParserMaxWhitespaceTokens()
    • hasParserOptions

      default boolean hasParserOptions()
    • getQueryComplexityInstrumentation

      default Optional<Integer> getQueryComplexityInstrumentation()
    • getQueryDepthInstrumentation

      default Optional<Integer> getQueryDepthInstrumentation()
    • isExcludeNullFieldsInResponses

      default boolean isExcludeNullFieldsInResponses()
    • getFieldVisibility

      default String getFieldVisibility()
    • getErrorExtensionFields

      default Optional<List<String>> getErrorExtensionFields()
    • getConfigValue

      default <T> T getConfigValue(String key, Class<T> type, T defaultValue)