added javadocs

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1711929 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Noble Paul 2015-11-02 10:12:34 +00:00
parent 3f27ae0877
commit 7f8b3db927
1 changed files with 5 additions and 0 deletions

View File

@ -125,6 +125,11 @@ public class PluginBag<T> implements AutoCloseable {
}
}
/** 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);