java/sql-dk/src/info/globalcode/sql/dk/configuration/ConfigurationProvider.java
author František Kučera <franta-hg@frantovo.cz>
Tue, 26 Feb 2019 18:19:49 +0100
branchv_0
changeset 236 a3ec71fa8e17
parent 155 eb3676c6929b
permissions -rw-r--r--
Avoid reusing/rewriting the DB connection properties. There was weird random errors while testing connection to multiple DB in parallel when one of them was meta connection to same DB connection. Two kinds of exception: 1) missing password 2) „Passing DB password as CLI parameter is insecure!“
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
20
e225bdcd260e refactor, configuration
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     1
/**
e225bdcd260e refactor, configuration
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     2
 * SQL-DK
e225bdcd260e refactor, configuration
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     3
 * Copyright © 2013 František Kučera (frantovo.cz)
e225bdcd260e refactor, configuration
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     4
 *
e225bdcd260e refactor, configuration
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     5
 * This program is free software: you can redistribute it and/or modify
e225bdcd260e refactor, configuration
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     6
 * it under the terms of the GNU General Public License as published by
e225bdcd260e refactor, configuration
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     7
 * the Free Software Foundation, either version 3 of the License, or
e225bdcd260e refactor, configuration
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     8
 * (at your option) any later version.
e225bdcd260e refactor, configuration
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     9
 *
e225bdcd260e refactor, configuration
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    10
 * This program is distributed in the hope that it will be useful,
e225bdcd260e refactor, configuration
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
e225bdcd260e refactor, configuration
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
e225bdcd260e refactor, configuration
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    13
 * GNU General Public License for more details.
e225bdcd260e refactor, configuration
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    14
 *
e225bdcd260e refactor, configuration
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License
e225bdcd260e refactor, configuration
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    16
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
e225bdcd260e refactor, configuration
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    17
 */
26
4ec8e5534eb9 configuration basics
František Kučera <franta-hg@frantovo.cz>
parents: 20
diff changeset
    18
package info.globalcode.sql.dk.configuration;
20
e225bdcd260e refactor, configuration
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    19
e225bdcd260e refactor, configuration
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    20
/**
155
eb3676c6929b more JavaDoc
František Kučera <franta-hg@frantovo.cz>
parents: 33
diff changeset
    21
 * Use for lazy-loading of the configuration.
20
e225bdcd260e refactor, configuration
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    22
 *
e225bdcd260e refactor, configuration
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    23
 * @author Ing. František Kučera (frantovo.cz)
e225bdcd260e refactor, configuration
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    24
 */
e225bdcd260e refactor, configuration
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    25
public interface ConfigurationProvider {
e225bdcd260e refactor, configuration
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    26
33
04db6ccd6c48 configuration loading from XML
František Kučera <franta-hg@frantovo.cz>
parents: 26
diff changeset
    27
	public Configuration getConfiguration() throws ConfigurationException;
20
e225bdcd260e refactor, configuration
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    28
}