Class NamedWriteableRegistry

org.elasticsearch.common.io.stream.NamedWriteableRegistry

public class NamedWriteableRegistry extends
A registry for Writeable.Reader readers of NamedWriteable. The registration is keyed by the combination of the category class of NamedWriteable, and a name unique to that category.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    An entry in the registry, made up of a category class and name, and a reader for that category class.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructs a new registry from the given entries.
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> Writeable.Reader<? extends T>
    <T> categoryClass,  name)
    Returns a reader for a NamedWriteable object identified by the name provided as argument and its category.

    Methods inherited from class java.lang.

    , , , , , , , , , ,
  • Constructor Details

    • NamedWriteableRegistry

      public NamedWriteableRegistry(<NamedWriteableRegistry.Entry> entries)
      Constructs a new registry from the given entries.
  • Method Details

    • getReader

      public <T> <T> categoryClass,  name)
      Returns a reader for a NamedWriteable object identified by the name provided as argument and its category.