Commit 5ffae6ae by Dan Markwat

Removed bootstrapping of the broken bridges; this will be revisited

later
parent 83e593ad
...@@ -47,18 +47,19 @@ import com.google.gson.JsonElement; ...@@ -47,18 +47,19 @@ import com.google.gson.JsonElement;
import com.google.gson.JsonObject; import com.google.gson.JsonObject;
import com.google.gson.JsonPrimitive; import com.google.gson.JsonPrimitive;
@Path("bridge/hive") //@Path("bridge/hive")
@Singleton @Singleton
public class HiveLineageResource { public class HiveLineageResource {
private final HiveLineageBridge bridge; private final HiveLineageBridge bridge = null;
/*
//@Inject //@Inject
public HiveLineageResource(HiveLineageBridge bridge) { public HiveLineageResource(HiveLineageBridge bridge) {
this.bridge = bridge; this.bridge = bridge;
} }
@Inject //@Inject
public HiveLineageResource(Map<Class<? extends IBridge>, IBridge> bridges) { public HiveLineageResource(Map<Class<? extends IBridge>, IBridge> bridges) {
this.bridge = (HiveLineageBridge) bridges.get(HiveLineageBridge.class); this.bridge = (HiveLineageBridge) bridges.get(HiveLineageBridge.class);
} }
...@@ -102,4 +103,5 @@ public class HiveLineageResource { ...@@ -102,4 +103,5 @@ public class HiveLineageResource {
return jo; return jo;
} }
} }
*/
} }
...@@ -78,6 +78,9 @@ public class GuiceServletConfig extends GuiceServletContextListener { ...@@ -78,6 +78,9 @@ public class GuiceServletConfig extends GuiceServletContextListener {
LOG.info(String.format("Loaded Service: %s", graphService.getClass().getName())); LOG.info(String.format("Loaded Service: %s", graphService.getClass().getName()));
LOG.info("Services bootstrapped successfully"); LOG.info("Services bootstrapped successfully");
/*
* Turned off for now - will be revisited later
*
LOG.info("Bootstrapping types into Type System"); LOG.info("Bootstrapping types into Type System");
BridgeTypeBootstrapper bootstrapper = injector.getInstance(BridgeTypeBootstrapper.class); BridgeTypeBootstrapper bootstrapper = injector.getInstance(BridgeTypeBootstrapper.class);
...@@ -88,6 +91,7 @@ public class GuiceServletConfig extends GuiceServletContextListener { ...@@ -88,6 +91,7 @@ public class GuiceServletConfig extends GuiceServletContextListener {
} }
LOG.info("Types bootstrapped successfully"); LOG.info("Types bootstrapped successfully");
*/
return injector; return injector;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment