title: Google Guice configuration error (No implementation was bound)
body: <p>I <strong>have a problem with the Google Guice framework</strong>.</p>
  
  <p>I'm trying to create a simple <strong>application that injects a list of objects</strong>. Unfortunately, when trying to run an application, I get the following error.</p>
  
  <blockquote>
    <p>No implementation for java.util.List was bound.
      while locating java.util.List
        for field at Operator.carShops(Operator.java:17)
      while locating Operator ()</p>
  </blockquote>
  
  <p>Here is the program code:</p>
  
  <pre><code>public class Main {
  public static void main(String[] args) {
          Injector injector = Guice.createInjector();
          Operator operator = injector.getInstance(Operator.class);
  
          operator.prepareData();
  }}
  
  
  
  public class Operator implements IOperator {
  @Inject
  private List&lt;CarShop&gt; carShops;
  
  public List&lt;CarShop&gt; getCarShops() {
      return carShops;                             &lt;--- Place of error occurrence
  }
  
  public void setCarShop(List&lt;CarShop&gt; carShops) {
      this.carShops = carShops;
  }
  
  public void prepareData() { 
      for(CarShop carShop:carShops)
          for(int i=0;i&lt;10;i++) {
              Car car = new Car();
              car.setPrice(1000);     
              carShop.addCar(car);
          }
  }}
  </code></pre>
  
  <p>Please help</p>