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

org.tkit.quarkus.log.cdi.runtime.LogBuildTimeConfig Maven / Gradle / Ivy

The newest version!
package org.tkit.quarkus.log.cdi.runtime;

import java.util.List;
import java.util.Optional;

import io.quarkus.runtime.annotations.*;
import io.smallrye.config.ConfigMapping;
import io.smallrye.config.WithDefault;
import io.smallrye.config.WithName;
import io.smallrye.config.WithParentName;

/**
 * Build configuration.
 */
@ConfigDocFilename("tkit-quarkus-log-cdi-build.adoc")
@ConfigRoot(phase = ConfigPhase.BUILD_AND_RUN_TIME_FIXED)
@ConfigMapping(prefix = "tkit.log.cdi.auto-discovery")
public interface LogBuildTimeConfig {

    String AUTO_DISCOVER_ANNO = "jakarta.enterprise.context.ApplicationScoped," +
            "jakarta.enterprise.context.Singleton,jakarta.enterprise.context.RequestScoped";

    /**
     * Auto-discovery configuration.
     *
     * @deprecated
     */
    @WithParentName
    AutoDiscoverBuildTimeConfig autoDiscover();

    /**
     * Auto discovery configuration
     */
    interface AutoDiscoverBuildTimeConfig {
        /**
         * Enable autodiscovery
         *
         * @deprecated
         */
        @WithName("enabled")
        @WithDefault("false")
        @Deprecated
        boolean enabled();

        //
        /**
         * Binding includes packages.
         */
        @WithName("packages")
        @WithDefault("org.tkit")
        List packages();

        /**
         * Specify ignore pattern.
         */
        @WithName("ignore.pattern")
        @WithDefault("")
        @Deprecated
        Optional ignorePattern();

        /**
         * The list of beans annotation
         */
        @WithName("bean.annotations")
        @WithDefault(AUTO_DISCOVER_ANNO)
        @Deprecated
        List annoBeans();

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy