diff options
author | 2017-08-23 19:35:20 +0000 | |
---|---|---|
committer | 2017-08-23 19:35:20 +0000 | |
commit | 7ea81288603904f0cb6f57936da44d6a3dd521a6 (patch) | |
tree | 192c5dc897ced8996e864644b4d6f46e4d55081a /ONAP-SDK-APP/src/main/java/org/openecomp/portalapp/conf/ExternalAppConfig.java | |
parent | 3144162991b83e3c4f3d1a240a65d8497042c718 (diff) | |
parent | 80f072f60509ef3a35369a60857fe05f6c2a993a (diff) |
Merge "Fixes for sonar critical issues"
Diffstat (limited to 'ONAP-SDK-APP/src/main/java/org/openecomp/portalapp/conf/ExternalAppConfig.java')
-rw-r--r-- | ONAP-SDK-APP/src/main/java/org/openecomp/portalapp/conf/ExternalAppConfig.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/ONAP-SDK-APP/src/main/java/org/openecomp/portalapp/conf/ExternalAppConfig.java b/ONAP-SDK-APP/src/main/java/org/openecomp/portalapp/conf/ExternalAppConfig.java index 91ed598cf..1b6397c05 100644 --- a/ONAP-SDK-APP/src/main/java/org/openecomp/portalapp/conf/ExternalAppConfig.java +++ b/ONAP-SDK-APP/src/main/java/org/openecomp/portalapp/conf/ExternalAppConfig.java @@ -28,6 +28,7 @@ import org.openecomp.portalsdk.core.auth.LoginStrategy; import org.openecomp.portalsdk.core.conf.AppConfig; import org.openecomp.portalsdk.core.conf.Configurable; import org.openecomp.portalsdk.core.objectcache.AbstractCacheManager; +import org.openecomp.portalsdk.core.onboarding.exception.PortalAPIException; import org.openecomp.portalsdk.core.service.DataAccessService; import org.openecomp.portalsdk.core.util.CacheManager; import org.openecomp.portalsdk.core.util.SystemProperties; @@ -135,11 +136,15 @@ public class ExternalAppConfig extends AppConfig implements Configurable { */ // @Bean // ANNOTATION COMMENTED OUT // APPLICATIONS REQUIRING QUARTZ SHOULD RESTORE ANNOTATION - public SchedulerFactoryBean schedulerFactoryBean() throws Exception { + public SchedulerFactoryBean schedulerFactoryBean() throws PortalAPIException { SchedulerFactoryBean scheduler = new SchedulerFactoryBean(); scheduler.setTriggers(schedulerRegistryAdapter.getTriggers()); scheduler.setConfigLocation(appApplicationContext.getResource("WEB-INF/conf/quartz.properties")); - scheduler.setDataSource(dataSource()); + try{ + scheduler.setDataSource(dataSource()); + }catch(Exception e){ + throw new PortalAPIException(e); + } return scheduler; } |