title: Multiple instances of same class in guice
body: <p>I have class called client.</p>
  
  <pre><code>@requiredconstructorargs
  Class client {
  
    Invoker invoker;
    String URL:
  
  }
  </code></pre>
  
  <p>Now what I want is to have two different instances of client that will have different url.</p>
  
  <p>Basic guice instance was</p>
  
  <pre><code>Client client(invoker){
    Return new client(invoker,hardcodedufl)
  }
  </code></pre>
  
  <p>Invoker is another guice injection.</p>
  
  <p>I want another instance with different url.</p>
  
  <p>I tried <code>@named</code> and <code>bind(client.class).annotatedwith(Names.named("some value")).toinstance(client1(??))</code>
  But was unable to pass the invoker.</p>
  
  <p>Can somebody help ??</p>