package com.github.slamdev.messageswatcher.collector.runner;

import com.github.slamdev.messageswatcher.collector.capturer.spi.Collector;
import com.google.inject.Guice;
import com.google.inject.Injector;

import javax.inject.Inject;
import java.util.Set;

public class Runner {

    @Inject
    public Runner(Set<Collector> collectors) {
        collectors.forEach(Collector::collect);
    }

    public void run() {
        System.out.println("running");
    }

    public static void main(String[] args) {
        Injector injector = Guice.createInjector(new RunnerModule());
        injector.getInstance(Runner.class).run();
    }
}

@@ -391,78 +391,8 @@
  %7D%0A%0A
-    public void run() %7B%0A        System.out.println(%22running%22);%0A    %7D%0A%0A
     
@@ -557,11 +557,81 @@
 );%0A    %7D
+%0A%0A    public void run() %7B%0A        System.out.println(%22running%22);%0A    %7D
 %0A%7D%0A

format code