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

io.github.mfvanek.pg.spring.DatabaseStructureHealthProperties Maven / Gradle / Ivy

There is a newer version: 0.13.1
Show newest version
/*
 * Copyright (c) 2021-2023. Ivan Vakhrushev.
 * https://github.com/mfvanek/pg-index-health-test-starter
 *
 * This file is a part of "pg-index-health-test-starter".
 *
 * Licensed under the Apache License 2.0
 */

package io.github.mfvanek.pg.spring;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.ConstructorBinding;

/**
 * Represents properties for managing pg-index-health-test-starter configuration.
 *
 * @author Ivan Vakhrushev
 * @since 2021.08.29
 */
@ConstructorBinding
@ConfigurationProperties(prefix = "pg.index.health.test")
public class DatabaseStructureHealthProperties {

    /**
     * Allows to manually disable starter even it presents on classpath.
     */
    private final boolean enabled;

    public DatabaseStructureHealthProperties(final boolean enabled) {
        this.enabled = enabled;
    }

    public boolean isEnabled() {
        return enabled;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy