/*-
* ============LICENSE_START=======================================================
- * ONAP Policy API
- * ================================================================================
+ * ONAP Policy API
+ * ================================================================================
* Copyright (C) 2018 Samsung Electronics Co., Ltd. All rights reserved.
* Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
* ================================================================================
*
*/
public class Main {
-
+
private static final Logger LOGGER = LoggerFactory.getLogger(Main.class);
// The policy api Activator that activates the policy api service
return;
}
+ // Initialize database
+ try {
+ new ApiDatabaseInitializer().initializeApiDatabase(parameterGroup.getDatabaseProviderParameters());
+ } catch (final PolicyApiException e) {
+ LOGGER.error("Preloading policy types into DB failed", e);
+ return;
+ }
+
// Now, create the activator for the policy api service
activator = new ApiActivator(parameterGroup);