Remove AJSC container.
[clamp.git] / src / main / java / org / onap / clamp / clds / config / SystemPropertiesLoader.java
@@ -2,7 +2,7 @@
  * ============LICENSE_START=======================================================
  * ONAP CLAMP
  * ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights
+ * Copyright (C) 2018 AT&T Intellectual Property. All rights
  *                             reserved.
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License"); 
  * ECOMP is a trademark and service mark of AT&T Intellectual Property.
  */
 
-package org.onap.clamp.clds;
+package org.onap.clamp.clds.config;
 
-import com.att.ajsc.common.camel.AjscRouteBuilder;
+import java.util.Properties;
 
-import org.apache.camel.builder.RouteBuilder;
-import org.springframework.beans.factory.annotation.Autowired;
+import javax.annotation.Resource;
+
+import org.springframework.context.ApplicationListener;
+import org.springframework.context.event.ContextRefreshedEvent;
 import org.springframework.stereotype.Component;
 
 @Component
-public class Routes extends RouteBuilder {
-    @Autowired
-    private AjscRouteBuilder ajscRoute;
+public class SystemPropertiesLoader implements ApplicationListener<ContextRefreshedEvent> {
+
+    @Resource(name = "mapper")
+    private Properties myTranslator;
 
     @Override
-    public void configure() {
-        ajscRoute.initialize(this);
-        ajscRoute
-                .setRoute(from("servlet:/?matchOnUriPrefix=true").to("cxfbean:jaxrsServices?providers=jaxrsProviders"));
+    public void onApplicationEvent(ContextRefreshedEvent contextRefreshedEvent) {
+        System.getProperties().putAll(myTranslator);
     }
 }