Project

General

Profile

Download (1.55 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2018 EDIT
3
* European Distributed Institute of Taxonomy
4
* http://www.e-taxonomy.eu
5
*
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.
8
*/
9
package eu.etaxonomy.cdm.api.config;
10

    
11
import org.springframework.core.env.Environment;
12

    
13
/**
14
 * Main class providing property keys for the application configuration.
15
 * <p>
16
 * Other component specific keys are found in:
17
 * <ul>
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>
21
 * </ul>
22
 *
23
 * @author a.kohlbecker
24
 * @since Feb 15, 2018
25
 */
26
public class CdmConfigurationKeys {
27

    
28
    /**
29
     * Key for the spring environment to the datasource bean id aka instance name.
30
     * <p>
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.
34
     */
35
    public static final String CDM_DATA_SOURCE_ID = "cdm.dataSource.id";
36

    
37
    /**
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
40
     */
41
    public static final String MAIL_ADDRESS_SUPPORT = "cdm.mailAddress.support";
42

    
43
}
(7-7/10)