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

io.github.jhipster.config.info.MailEnabledInfoContributor Maven / Gradle / Ivy

Go to download

Server-side library used by applications created with the JHipster generator, see https://www.jhipster.tech/ for more information on JHipster

There is a newer version: 3.9.1
Show newest version
package io.github.jhipster.config.info;

import io.github.jhipster.config.JHipsterProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.actuate.info.Info;
import org.springframework.boot.actuate.info.InfoContributor;

/**
 * An {@link InfoContributor} that tells if mail service is enabled.
 *
 */
public class MailEnabledInfoContributor implements InfoContributor {

    private static final String MAIL_ENABLED = "mailEnabled";

    @Autowired
    private JHipsterProperties jHipsterProperties;

    @Override
    public void contribute(Info.Builder builder) {
        builder.withDetail(MAIL_ENABLED, jHipsterProperties.getMail().isEnabled());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy