title: Autowiring in typescript
body: <p>I have an input message which has to be compared with the one existing in my DB and generate specific domain events. </p>
  
  <p>An implementation for this in java will be creating an abstract class with a method to process and generate events. All classes which inherit this will provide their specific implementations. I am autowiring AbstractDetector and hence all its child classes will get become eligible candidates and get added to the list as below</p>
  
  <pre><code>@Autowired
  public Processor(
              List&lt;AbstractDetector&gt; detectors, 
              ) {
          this.detectors = detectors;
  
      }
  </code></pre>
  
  <p>Then iterating through detectors and calling process method in each of them will create my domain events. </p>
  
  <p>Please suggest how to implement the same in typescript.</p>