Loaded app properties Configuration class into the web application context.
This was done to ensure that the application properties are read into
the Spring Environment before it is accessed by other beans.
Issue-ID: CCSDK-1011
Change-Id: I8ab840b51cc09c0095f53f8e124ca4f1fa896a73
Signed-off-by: Kotagiri, Ramprasad (rp5662) <rp5662@att.com>
*/
@Autowired
public void setEnvironment(final Environment environment) {
- this.environment = environment;
+ DashboardProperties.environment = environment;
}
/**
*/
package org.onap.portalapp.conf;
+import org.onap.ccsdk.dashboard.util.DashboardProperties;
import org.onap.portalsdk.core.conf.AppInitializer;
public class ExternalAppInitializer extends AppInitializer {
// Show something on stdout to indicate the app is starting.
System.out.println(
"ExternalAppInitializer: servlet configuration class is " + appConfigClass.getName());
- return new Class[] {appConfigClass};
+ return new Class[] {appConfigClass, DashboardProperties.class};
}
/*