RemoteSolrServerQueryer depends on component HttpClient which is available in the container, solrBaseUrl is a common configuration parameter.
I want to create 3 different RemoteSolrServerQueryer instances for which the only difference is solrBaseUrl.
For now I have to create a Factory or use assisted inject, what I really wish guice/sisu has is I can prepare these 3 instances in a Module because I know all the 3 solrCoreName value up front. Something like:
This issue was created automatically with bugzilla2github
Bugzilla Bug 386440
Date: 2012-08-01 18:50:16 -0400 From: Stuart McCulloch <mcculls@gmail.com> To: Project Inbox <sisu-inbox@eclipse.org>
See also: https://issues.sonatype.org/browse/SISU-64 Last updated: 2013-07-16 21:17:02 -0400
Comment 2144117
Date: 2012-08-01 18:50:16 -0400 From: Stuart McCulloch <mcculls@gmail.com>
Migrated from https://issues.sonatype.org/browse/SISU-64
I have a class like this:
RemoteSolrServerQueryer
depends on componentHttpClient
which is available in the container,solrBaseUrl
is a common configuration parameter.I want to create 3 different
RemoteSolrServerQueryer
instances for which the only difference issolrBaseUrl
.For now I have to create a
Factory
or use assisted inject, what I really wish guice/sisu has is I can prepare these 3 instances in aModule
because I know all the 3solrCoreName
value up front. Something like: