And the close hook will basically only be fired once during shutdown?

On Fri, Nov 15, 2013 at 1:07 PM, Chris Hostetter
<hossman_luc...@fucit.org>wrote:

>
> : So for a given instance of a handler it will only be called once during
> the
> : lifetime of that handler?
>
> correct (unless there is a bug somewhere)
>
> : Also, when the core is passed in as part of inform() is it guaranteed to
> be
> : ready to go? (ie I can start feeding content at this point?)
>
> Right, that's the point of the interface: way back in the day we had
> people writting plugins that were trying to use SolrCore from their init()
> methods and the SolrCore wasn't fully initialized yet (didn't have
> DirectUpdateHandler yet, didn't have all of hte RequestHandler's
> initialized, didn't have an openSearcher, etc...)
>
> the inform(SolrCore) method is called after the SolrCore is initialized,
> and all plugins hanging off of it have been init()ed ... you can still get
> into trouble if you write FooA.inform(SolrCore) such that it asks the
> SolrCore for for a pointer to some FooB plugin and expect that FooB's
> infomr(SolrCore) method has already been called -- because there is no
> garunteed order -- but the basic functionality and basic plugin
> initialization has all been done at that point.
>
>
> -Hoss
>

Reply via email to