mirror of https://github.com/apache/lucene.git
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:
parent
3f27ae0877
commit
7f8b3db927
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue