You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by no...@apache.org on 2015/11/02 11:12:34 UTC
svn commit: r1711929 -
/lucene/dev/trunk/solr/core/src/java/org/apache/solr/core/PluginBag.java
Author: noble
Date: Mon Nov 2 10:12:34 2015
New Revision: 1711929
URL: http://svn.apache.org/viewvc?rev=1711929&view=rev
Log:
added javadocs
Modified:
lucene/dev/trunk/solr/core/src/java/org/apache/solr/core/PluginBag.java
Modified: lucene/dev/trunk/solr/core/src/java/org/apache/solr/core/PluginBag.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/core/src/java/org/apache/solr/core/PluginBag.java?rev=1711929&r1=1711928&r2=1711929&view=diff
==============================================================================
--- lucene/dev/trunk/solr/core/src/java/org/apache/solr/core/PluginBag.java (original)
+++ lucene/dev/trunk/solr/core/src/java/org/apache/solr/core/PluginBag.java Mon Nov 2 10:12:34 2015
@@ -125,6 +125,11 @@ public class PluginBag<T> implements Aut
}
}
+ /** make a plugin available in an alternate name. This is an internal API and not for public use
+ * @param src key in which the plugin is already registered
+ * @param target the new key in which the plugin should be aliased to. If target exists already, the alias fails
+ * @return flag if the operation is successful or not
+ */
boolean alias(String src, String target) {
if (src == null) return false;
PluginHolder<T> a = registry.get(src);