title: Is it possible to inject dependency inside java interface using guice - java
body: <p>I am trying to inject dependency inside my interface</p>
  <pre><code>public interface TestInject {
  
     @Inject
     Mydependency dependencyToCall;
  
      default void processInput(String inputToCheck) {
          //some lines of code
          dependencyToCall.process(inputToCheck)
      } // If i dont do this then all implementation has to implement same code. 
  
    void handleError()//will be overwritten by implementation class
  
  }
  </code></pre>
  <p>the above code throws error <code>variable dependencyToCall might not be initialized</code></p>
  <p>Is it possible to inject inside interface ?</p>
  <p>Or do i have to introduce abstract class to solve redundant code issue</p>