package com.picscout.netdepend.netdepend_graph;

import org.apache.log4j.Logger;

import com.google.common.collect.Lists;
import com.google.inject.AbstractModule;
import com.google.inject.Key;
import com.google.inject.Module;
import com.google.inject.multibindings.MapBinderBinding;
import com.google.inject.multibindings.Multibinder;
import com.google.inject.multibindings.MultibinderBinding;
import com.google.inject.multibindings.MultibindingsTargetVisitor;
import com.google.inject.spi.DefaultBindingTargetVisitor;
import com.google.inject.spi.Element;
import com.google.inject.spi.Elements;

import hudson.Extension;
import hudson.plugins.depgraph_view.model.graph.EdgeProvider;

@Extension
public class NetDependModule extends AbstractModule {

	private final static Logger LOG = Logger.getLogger(NetDependModule.class
			.getName());

	@Override
	protected void configure() {

		LOG.info("NetDependModule configure was called. " + Thread.currentThread().getStackTrace());
		Multibinder<EdgeProvider> edgeProviderMultibinder = Multibinder
				.newSetBinder(binder(), EdgeProvider.class);
		edgeProviderMultibinder.addBinding().to(EdgeProviderImpl.class);
	}

}


@@ -53,29 +53,184 @@
 ort 
-org.apache.log4j.Logg
+java.security.spec.ECGenParameterSpec;%0A%0Aimport org.apache.log4j.Logger;%0Aimport org.apache.xerces.dom.ElementDefinitionImpl;%0Aimport org.bouncycastle.operator.InputExpanderProvid
 er;%0A
@@ -303,32 +303,64 @@
 AbstractModule;%0A
+import com.google.inject.Guice;%0A
 import com.googl
@@ -780,96 +780,739 @@
 ts;%0A
-%0Aimport hudson.Extension;%0Aimport hudson.plugins.depgraph_view.model.graph.EdgeProvider;%0A
+import com.google.inject.util.Modules;%0Aimport com.picscout.depend.dependency.classes.ProjectBuilder;%0Aimport com.picscout.depend.dependency.interfaces.IProjectBuilder;%0A%0Aimport hudson.Extension;%0Aimport hudson.plugins.depgraph_view.model.graph.DependencyGraphEdgeProvider;%0Aimport hudson.plugins.depgraph_view.model.graph.DependencyGraphModule;%0Aimport hudson.plugins.depgraph_view.model.graph.EdgeProvider;%0A%0A/**%0A * Module used to inject new edge provider. still not usable, see: %7B@link:%0A * https://issues.jenkins-ci.org/browse/JENKINS-28773?jql=project%2520%253D%2520%0A * JENKINS%0A * %2520AND%2520status%2520in%2520(Open%252C%2520%2522In%2520Progress%2522%252C%2520Reopened)%2520%0A * AND%2520component%2520%253D%2520%2527depgraph-view-plugin%2527%7D%0A * %0A * @author OSchliefer%0A *%0A */
 %0A@Ex
@@ -1665,16 +1665,147 @@
 me());%0A%0A
+%09public NetDependModule() %7B%0A%09%09LOG.info(%22NetDependModule override was called. %22%0A%09%09%09%09+ Thread.currentThread().getStackTrace());%0A%0A%09%7D%0A%0A
 %09@Overri
@@ -1889,17 +1889,21 @@
 alled. %22
- 
+%0A%09%09%09%09
 + Thread
@@ -2125,9 +2125,8 @@
 ;%0A%09%7D%0A%0A%7D%0A
-%0A

add comment