All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.auritylab.graphql.kotlin.toolkit.spring.configuration.GraphQLProperties.kt Maven / Gradle / Ivy

package com.auritylab.graphql.kotlin.toolkit.spring.configuration

import org.springframework.beans.factory.annotation.Value
import org.springframework.boot.context.properties.ConfigurationProperties
import org.springframework.context.annotation.Configuration
import org.springframework.validation.annotation.Validated

@Validated
@Configuration
@ConfigurationProperties("graphql-kotlin-toolkit.spring")
open class GraphQLProperties {
    /**
     * Represents the endpoint for the GraphQL controller.
     * Defaults to "graphql".
     */
    @Value("graphql")
    lateinit var endpoint: String

    /**
     * Represents the property to access the instrumentation properties.
     */
    var instrumentation: Instrumentation =
        Instrumentation()

    /**
     * Represents all available options for instrumentations.
     */
    open class Instrumentation {
        /**
         * If the tracing extension should be enabled.
         * Defaults to "false".
         */
        var enableTracingInstrumentation: Boolean = false
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy