diff options
author | Thomas Lenz <tlenz@iaik.tugraz.at> | 2018-02-27 08:54:36 +0100 |
---|---|---|
committer | Thomas Lenz <tlenz@iaik.tugraz.at> | 2018-02-27 08:54:36 +0100 |
commit | 9d01327960b0531da64ae3ffd1b39592830dd425 (patch) | |
tree | 06d67a5224ba7de9813e6803a5aedd4a30f35cc6 /id/server/moa-id-spring-initializer/src | |
parent | 80ea041e0240eb3d9291eb0d699bb09c90aaa2a9 (diff) | |
download | moa-id-spss-9d01327960b0531da64ae3ffd1b39592830dd425.tar.gz moa-id-spss-9d01327960b0531da64ae3ffd1b39592830dd425.tar.bz2 moa-id-spss-9d01327960b0531da64ae3ffd1b39592830dd425.zip |
some more updates are required to support postgresql databases
Diffstat (limited to 'id/server/moa-id-spring-initializer/src')
-rw-r--r-- | id/server/moa-id-spring-initializer/src/main/java/at/gv/egovernment/moa/id/auth/MOAIDAuthSpringInitializer.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/id/server/moa-id-spring-initializer/src/main/java/at/gv/egovernment/moa/id/auth/MOAIDAuthSpringInitializer.java b/id/server/moa-id-spring-initializer/src/main/java/at/gv/egovernment/moa/id/auth/MOAIDAuthSpringInitializer.java index b6fd8de8e..bf0273898 100644 --- a/id/server/moa-id-spring-initializer/src/main/java/at/gv/egovernment/moa/id/auth/MOAIDAuthSpringInitializer.java +++ b/id/server/moa-id-spring-initializer/src/main/java/at/gv/egovernment/moa/id/auth/MOAIDAuthSpringInitializer.java @@ -1,5 +1,6 @@ package at.gv.egovernment.moa.id.auth; +import java.util.Arrays; import java.util.Map; import java.util.Map.Entry; @@ -67,12 +68,10 @@ public class MOAIDAuthSpringInitializer implements WebApplicationInitializer { GenericWebApplicationContext rootContext = new GenericWebApplicationContext(); rootContext.setServletContext(servletContext); rootContext.setParent(cfgRootContext); - + ConfigurationProvider moaidconfig = (ConfigurationProvider) cfgRootContext.getBean("moaidauthconfig"); String[] springProfiles = moaidconfig.getActiveProfiles(); - - - + Logger.info("=============== Setting active profiles! ==============="); if (this.activeProfiles != null) { for (String profile : this.activeProfiles) { @@ -86,6 +85,9 @@ public class MOAIDAuthSpringInitializer implements WebApplicationInitializer { } } + Logger.info("Spring-context was initialized with active profiles: " + + Arrays.asList(rootContext.getEnvironment().getActiveProfiles())); + Logger.info("=============== Loading Local Contexts! ==============="); XmlBeanDefinitionReader xmlReader = new XmlBeanDefinitionReader( rootContext); |