lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Smiley (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (LUCENE-4823) Add a separate "registration" singleton for Lucene's SPI, so there is only one central instance to request rescanning of classpath (e.g. from Solr's ResourceLoader)
Date Sun, 16 Mar 2014 04:47:25 GMT

     [ https://issues.apache.org/jira/browse/LUCENE-4823?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

David Smiley updated LUCENE-4823:
---------------------------------

    Fix Version/s:     (was: 4.7)
                   4.8

> Add a separate "registration" singleton for Lucene's SPI, so there is only one central
instance to request rescanning of classpath (e.g. from Solr's ResourceLoader)
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: LUCENE-4823
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4823
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: core/other
>            Reporter: Uwe Schindler
>            Assignee: Uwe Schindler
>             Fix For: 4.8
>
>
> Currently there is no easy way to do a global "rescan/reload" of all of Lucene's SPIs
in the right order. In solr there is a long list of reload instructions in the ResourceLoader.
If somebody adds a new SPI type, you have to add it there.
> It would be good to java a central instance in oal.util that keeps track of all NamedSPILoaders
and AnalysisSPILoaders (in the order they were instantiated), so you have one central entry
point to trigger a reload.
> This issue will introduce:
> - A singleton that makes reloading possible. The singleton keeps weak refs to all loaders
(of any kind) in the order they were created.
> - NamedSPILoader and AnalysisSPILoader cleanup (unfortunately we need both instances,
as they differ in the internals (one keeps classes, the other one instances). Both should
implement a "reloadable" interface.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message