title: How to bind String to variable in Guice?
body: <p>I'm new to Guice and here is a naive question. I learned that we could bind String to a particular value through:</p>
  
  
  
  <pre><code>bind(String.class)
          .annotatedWith(Names.named("JDBC URL"))
          .toInstance("jdbc:mysql://localhost/pizza");
  </code></pre>
  
  <p>But what if I want to bind String to any possible characters?</p>
  
  <p>Or I think it could be described this way:</p>
  
  <p>How can I replace "new SomeClass(String strParameter)" with Guice?</p>