title: hk2: why bind(X.class).to(X.class)
body: <p>I am learning Java, but found the following piece of code. I am confused. What is <code>bind(X.class).to(X.class);</code> for?</p>
  
  <pre><code>import org.glassfish.hk2.utilities.binding.AbstractBinder;
  public class ApplicationBinder extends AbstractBinder {
      @Override
      protected void configure() {
          bind(X.class).to(X.class);
      }
  }
  </code></pre>
  
  <p>Thanks</p>