title: Dependency injection: how to get a newable to an injectable without passing it in the constructor?
body: <p>Let's say that I have a class <code>A</code> that is injected to <code>B</code>. <code>B</code> is injected to <code>C</code> and <code>C</code> is injected to <code>D</code>.</p>
  
  <p><code>D</code> has a method <code>doSomething</code> that receives a newable <code>NAClass</code>. <code>A</code> needs some information that is stored in <code>NAClass</code>. I am looking for the correct way to pass this info to <code>A</code> without the need to pass it to <code>C</code> and <code>B</code>, which don't need it.</p>
  
  <p>One way is to pass this info when building <code>A</code> in the factory method, however in that case I break the dependency injection rule in which newables should not be passed to injectables in constructors.</p>
  
  <p>What would be the correct way to solve this problem?</p>