Class NamedWriteableRegistry
- java.lang.Object
-
- org.elasticsearch.common.io.stream.NamedWriteableRegistry
-
public class NamedWriteableRegistry extends java.lang.ObjectA registry forWriteable.Readerreaders ofNamedWriteable. The registration is keyed by the combination of the category class ofNamedWriteable, and a name unique to that category.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNamedWriteableRegistry.EntryAn entry in the registry, made up of a category class and name, and a reader for that category class.
-
Constructor Summary
Constructors Constructor Description NamedWriteableRegistry(java.util.List<NamedWriteableRegistry.Entry> entries)Constructs a new registry from the given entries.
-
Method Summary
Modifier and Type Method Description <T> Writeable.Reader<? extends T>getReader(java.lang.Class<T> categoryClass, java.lang.String name)Returns a reader for aNamedWriteableobject identified by the name provided as argument and its category.
-
-
-
Constructor Detail
-
NamedWriteableRegistry
public NamedWriteableRegistry(java.util.List<NamedWriteableRegistry.Entry> entries)
Constructs a new registry from the given entries.
-
-
Method Detail
-
getReader
public <T> Writeable.Reader<? extends T> getReader(java.lang.Class<T> categoryClass, java.lang.String name)
Returns a reader for aNamedWriteableobject identified by the name provided as argument and its category.
-
-