lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hoss Man (JIRA)" <>
Subject [jira] Commented: (SOLR-182) register SolrRequestHandlers at runtime / lazy loading
Date Fri, 23 Mar 2007 23:41:32 GMT


Hoss Man commented on SOLR-182:

related note i'm typing before i forget...

in SOLR-81 i tried to call SolrCore.getSolrCore.getDataDir() in the init method of a requestHandler
and got an infinite loop.  I can't remember if this type of situation would be prevented by
this patch or not ... if it isn't that doesn't mean this patch shouldn't be committed, it
just means we should probably open a separate bug to try and detect/prevent/error in that

> register SolrRequestHandlers at runtime / lazy loading
> ------------------------------------------------------
>                 Key: SOLR-182
>                 URL:
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Ryan McKinley
>             Fix For: 1.2
>         Attachments: SOLR-182-RuntimeRequestHandlers.patch, SOLR-182-RuntimeRequestHandlers.patch,
SOLR-182-RuntimeRequestHandlers.patch, SOLR-182-RuntimeRequestHandlers.patch, SOLR-182-RuntimeRequestHandlers.patch
> It would be useful to be able to register handlers after SolrCore has been initialized
initialized.  It is also useful to be able to ask what handlers are registered and to where.
 This patch adds the following functions to SolrCore:
> SolrRequestHandler registerRequestHandler(String handlerName, SolrRequestHandler handler);
> Collection<SolrRequestHandler> getRequestHandlers(Class<? extends SolrRequestHandler>
> It also guarantees that request handlers will be initialized with an argument saying
what path it is registered to.  RequestHandlerBase gets a bean for the registered path.
> While discussing this, Yonik suggested making it possible to defer initialization of
some handlers that will be infrequently used.  I added the 'LazyRequestHandlerWrapper'  (if
taking this out makes the patch any easier to commit - it can get its own issue)
> check:

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message