title: Retrofit + Dagger + Different Endpoints
body: <p>In my app I use Retrofit and pass an instance of ApiClient in appropriate place via Dagger. I've read that <code>RestAdapter.Builder.build()</code> and <code>adapter.create(Class class)</code> are very expensive. So I annotate the provide method as @Singleton. </p>
  
  <p>Here is abstract code:</p>
  
  <pre><code>@Provides
  @Singleton
  ApiClient provideRestClient() {
    ...
    return adapter.create(ApiClient.class)
  }
  </code></pre>
  
  <p>Everything worked great, but now I need to switch between several subdomains. I.e. from <a href="http://subdomain1.domain.com" rel="nofollow">http://subdomain1.domain.com</a> to <a href="http://subdomain2.domain.com" rel="nofollow">http://subdomain2.domain.com</a> for example. </p>
  
  <p>Can I change an endpoint in runtime? Or I shouldn't use Retrofit in this case...</p>