package examples.simple.detectors;

import com.chriskdon.signal.Detector;
import examples.simple.signals.SimpleSignal;

public class SimpleSignalDetector extends Detector<SimpleSignal> {
  @Override
  public void handleSignal(SimpleSignal simpleSignal) {
    System.out.println("Simple Signal Detected: " + simpleSignal.getMessage());

    getReference().signal(new SimpleSignal("Message from detector: " + simpleSignal.getMessage()));
  }
}

@@ -331,109 +331,8 @@
 ());
-%0A%0A    getReference().signal(new SimpleSignal(%22Message from detector: %22 + simpleSignal.getMessage()));
 %0A  %7D

Remove recursive signal