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

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

There is a newer version: 2.36.0
Show newest version
package org.tkit.quarkus.log.cdi.deployment;

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

import io.quarkus.runtime.annotations.ConfigGroup;
import io.quarkus.runtime.annotations.ConfigItem;
import io.quarkus.runtime.annotations.ConfigPhase;
import io.quarkus.runtime.annotations.ConfigRoot;

/**
 * Build configuration.
 */
@ConfigRoot(prefix = "tkit", name = "log.cdi", phase = ConfigPhase.BUILD_TIME)
public class LogBuildTimeConfig {

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

    /**
     * Auto-discovery configuration.
     */
    @ConfigItem(name = "auto-discovery")
    public AutoDiscoverBuildTimeConfig autoDiscover;

    /**
     * Auto discovery configuration
     */
    @ConfigGroup
    public static class AutoDiscoverBuildTimeConfig {
        /**
         * Enable autodiscovery
         */
        @ConfigItem(name = "enabled", defaultValue = "false")
        public boolean enabled;

        /**
         * Binding includes packages.
         */
        @ConfigItem(name = "packages", defaultValue = "org.tkit")
        public List packages;

        /**
         * Specify ignore pattern.
         */
        @ConfigItem(name = "ignore.pattern", defaultValue = "")
        public Optional ignorePattern;

        /**
         * The list of beans annotation
         */
        @ConfigItem(name = "bean.annotations", defaultValue = AUTO_DISCOVER_ANNO)
        public List annoBeans = new ArrayList<>();

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy