SOLR-7703: Authentication plugin is now loaded using the RessourceLoader

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1690553 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Anshum Gupta 2015-07-12 23:49:08 +00:00
parent 9152164afb
commit 82bb97f005
2 changed files with 4 additions and 6 deletions

View File

@ -324,6 +324,9 @@ Other Changes
* SOLR-7750: Change TestConfig.testDefaults to cover all SolrIndexConfig fields
(Christine Poerschke via Ramkumar Aiyengar)
* SOLR-7703: Authentication plugin is now loaded using the RessourceLoader.
(Avi Digmi via Anshum Gupta)
================== 5.2.1 ==================
Consult the LUCENE_CHANGES.txt file for additional, low level, changes in this release

View File

@ -260,12 +260,7 @@ public class CoreContainer {
// Initialize the filter
if (pluginClassName != null) {
try {
Class cl = Class.forName(pluginClassName);
authenticationPlugin = (AuthenticationPlugin) cl.newInstance();
} catch (InstantiationException | IllegalAccessException | ClassNotFoundException e) {
throw new SolrException(ErrorCode.SERVER_ERROR, e);
}
authenticationPlugin = getResourceLoader().newInstance(pluginClassName, AuthenticationPlugin.class);
}
if (authenticationPlugin != null) {
authenticationPlugin.init(authenticationConfig);