2 * Copyright (C) 2018 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
6 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 * See LICENSE.TXT at the top of this package for the full license terms.
9 package eu
.etaxonomy
.cdm
.api
.config
;
11 import org
.springframework
.core
.env
.Environment
;
14 * Main class providing property keys for the application configuration.
16 * Other component specific keys are found in:
18 * <li>{@link SendEmailConfigurer}: Theses keys are replacing those which would come with
19 * {@code org.springframework.boot.autoconfigure.mail.MailSenderAutoConfiguration} which can not
20 * yet be used in this project.</li>
23 * @author a.kohlbecker
26 public class CdmConfigurationKeys
{
29 * Key for the spring environment to the datasource bean id aka instance name.
31 * By now this key can be used to retrieve the datasource bean id from the Spring {@link Environment} from
32 * all applications that are making use of the {@code eu.etaxonomy.cdm.opt.config.DataSourceConfigurer}.
33 * - as far as other classes that configure the data sources do not yet implement setting this property.
35 public static final String CDM_DATA_SOURCE_ID
= "cdm.dataSource.id";
38 * The email address of the help desk. This is usually the same for all instances running on the same server and
39 * therefore should be configured as as
41 public static final String MAIL_ADDRESS_SUPPORT
= "cdm.mailAddress.support";