aboutsummaryrefslogtreecommitdiff
path: root/id/server/stork2-saml-engine/src/main/java/eu/stork/peps/configuration/ConfigurationSingleton.java
diff options
context:
space:
mode:
authorFlorian Reimair <florian.reimair@iaik.tugraz.at>2015-08-07 13:24:09 +0200
committerFlorian Reimair <florian.reimair@iaik.tugraz.at>2015-08-07 13:24:09 +0200
commitf71531346c6be197957311712ba093e024545e37 (patch)
tree450a1480dd65b61a98a71588e635bf91c1613cb7 /id/server/stork2-saml-engine/src/main/java/eu/stork/peps/configuration/ConfigurationSingleton.java
parentb92da70a3071e1dbf910ee38ff4efbe61ecc8be6 (diff)
downloadmoa-id-spss-f71531346c6be197957311712ba093e024545e37.tar.gz
moa-id-spss-f71531346c6be197957311712ba093e024545e37.tar.bz2
moa-id-spss-f71531346c6be197957311712ba093e024545e37.zip
preparing the old code for the merge
Diffstat (limited to 'id/server/stork2-saml-engine/src/main/java/eu/stork/peps/configuration/ConfigurationSingleton.java')
-rw-r--r--id/server/stork2-saml-engine/src/main/java/eu/stork/peps/configuration/ConfigurationSingleton.java66
1 files changed, 33 insertions, 33 deletions
diff --git a/id/server/stork2-saml-engine/src/main/java/eu/stork/peps/configuration/ConfigurationSingleton.java b/id/server/stork2-saml-engine/src/main/java/eu/stork/peps/configuration/ConfigurationSingleton.java
index d00607853..4a382fe99 100644
--- a/id/server/stork2-saml-engine/src/main/java/eu/stork/peps/configuration/ConfigurationSingleton.java
+++ b/id/server/stork2-saml-engine/src/main/java/eu/stork/peps/configuration/ConfigurationSingleton.java
@@ -31,44 +31,44 @@ import eu.stork.peps.exceptions.STORKSAMLEngineRuntimeException;
*/
public final class ConfigurationSingleton {
- /** The instance of every engine SAML. */
- private static Map<String, InstanceEngine> instanceConfigs;
+ /** The instance of every engine SAML. */
+ private static Map<String, InstanceEngine> instanceConfigs;
- /** The instances of SAML engine. */
- private static Map<String, Map<String, Object>> instances;
+ /** The instances of SAML engine. */
+ private static Map<String, Map<String, Object>> instances;
- /** The Constant LOGGER. */
- private static final Logger LOGGER = LoggerFactory
- .getLogger(ConfigurationSingleton.class.getName());
+ /** The Constant LOGGER. */
+ private static final Logger LOGGER = LoggerFactory.getLogger(ConfigurationSingleton.class.getName());
- static {
- LOGGER.debug("Read all file configurations. (instances of SAMLEngine)");
- try {
- instanceConfigs = ConfigurationReader.readConfiguration();
- } catch (SAMLEngineException e) {
- LOGGER.error("Error read configuration file.");
- throw new STORKSAMLEngineRuntimeException(e);
+ static {
+ LOGGER.debug("Read all file configurations. (instances of SAMLEngine)");
+ try {
+ instanceConfigs = ConfigurationReader.readConfiguration();
+ } catch (SAMLEngineException e) {
+ LOGGER.error("Error read configuration file.");
+ throw new STORKSAMLEngineRuntimeException(e);
+ }
}
- }
- /**
- * Gets the new instance.
- *
- * @param fileName the file name
- *
- * @return the properties from the new instance
- *
- * @throws STORKSAMLEngineException the STORKSAML engine runtime exception
- */
- private static Map<String, Map<String, Object>> getInstance(
- final String fileName) throws STORKSAMLEngineException {
- return ConfigurationCreator.createConfiguration(instanceConfigs);
- }
+ /**
+ * Gets the new instance.
+ *
+ * @param fileName
+ * the file name
+ *
+ * @return the properties from the new instance
+ *
+ * @throws STORKSAMLEngineException
+ * the STORKSAML engine runtime exception
+ */
+ private static Map<String, Map<String, Object>> getInstance(final String fileName) throws STORKSAMLEngineException {
+ return ConfigurationCreator.createConfiguration(instanceConfigs);
+ }
- /**
- * Instantiates a new instance creator.
- */
- private ConfigurationSingleton() {
- }
+ /**
+ * Instantiates a new instance creator.
+ */
+ private ConfigurationSingleton() {
+ }
} \ No newline at end of file