Hello,

I need to introduce several singletons inside of Solr and make them
available for my own SearchHandlers, Components, and even QParsers, etc.

Right now I use some kind of fake SolrRequestHandler which loads on init()
and available everywhere through
solrCore.getRequestHandler("wellknownName"). Then I downcast it everywhere
and access the required methods. The same is possible with fake
SearchComponent.
Particularly my singletons are some additional fields schema (pretty
sophisticated), and kind of request/response encoding facility.
The typical Java hammer for such pins is Spring, but I've found puzzling to
use
http://static.springframework.org/spring/docs/3.0.x/javadoc-api/org/springframework/web/context/support/WebApplicationContextUtils.html

What's the best way to do that?

-- 
Sincerely yours
Mikhail Khludnev
Lucid Certified
Apache Lucene/Solr Developer
Grid Dynamics

<http://www.griddynamics.com>
 <mkhlud...@griddynamics.com>

Reply via email to