title: How to use Google Guice to create objects that require parameters?
body: <p>Maybe I am just blind, but I do not see how to use Guice (just starting with it) to replace the <code>new</code> call in this method:</p>
  
  <pre><code>public boolean myMethod(String anInputValue) {
      Processor proc = new ProcessorImpl(anInputValue);
      return proc.isEnabled();
  }
  </code></pre>
  
  <p>For testing there might be a different implementation of the Processor, so I'd like to avoid the <code>new</code> call and in the course of that get rid of the dependency on the implementation.</p>
  
  <p>If my class could just remember an instance of Processor I could inject it via the constructor, but as the Processors are designed to be immutable I need a new one every time.</p>
  
  <p>How would I go about and achieve that with Guice (2.0) ?</p>