title: Is there a way you can inject a class whose constructor has parameters in micronaut?
body: <p>Suppose I have class A.</p>
  
  <pre><code>class A {
      private String s;
  
      public A(String s) {
          this.s = s;
      }
  }
  </code></pre>
  
  <p>and I want to inject A into class B.</p>
  
  <p>So far, I have been injecting classes without constructor parameters like</p>
  
  <pre><code>class B {
  
      @Inject
      private A a;
  }
  </code></pre>
  
  <p>But I don't know how classes with constructor parameters can be injected.
  How can I do this?</p>