Package org.elasticsearch.common
Class NamedRegistry<T>
- java.lang.Object
-
- org.elasticsearch.common.NamedRegistry<T>
-
public class NamedRegistry<T> extends java.lang.Object
A registry from String to some class implementation. Used to ensure implementations are registered only once.
-
-
Constructor Summary
Constructors Constructor Description NamedRegistry(java.lang.String targetName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <P> void
extractAndRegister(java.util.List<P> plugins, java.util.function.Function<P,java.util.Map<java.lang.String,T>> lookup)
java.util.Map<java.lang.String,T>
getRegistry()
void
register(java.lang.String name, T t)
-