Class NamedWriteableRegistry

java.lang.Object
org.elasticsearch.common.io.stream.NamedWriteableRegistry

public class NamedWriteableRegistry extends Object
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.
  • Constructor Details

  • Method Details

    • getReader

      public <T> Writeable.Reader<? extends T> getReader(Class<T> categoryClass, String name)
      Returns a reader for a NamedWriteable object identified by the name provided as argument and its category.