OpenSearch/modules
Nik Everett 93ab4cfc99 Stop using PROTOTYPE in NamedWriteableRegistry
readFrom is confusing because it requires an instance of the type that it
is reading but it doesn't modify it. But we also have (deprecated) methods
named readFrom that *do* modify the instance. The "right" way to implement
the non-modifying readFrom is to delegate to a constructor that takes a
StreamInput so that the read object can be immutable. Now that we have
`@FunctionalInterface`s it is fairly easy to register things by referring
directly to the constructor.

This change modifying NamedWriteableRegistry so that it does that. It keeps
supporting `registerPrototype` which registers objects to be read by
readFrom but deprecates it and delegates it to a new `register` method
that allows passing a simple functional interface. It also cuts Task.Status
subclasses over to using that method.

The start of #17085
2016-03-24 11:26:44 -04:00
..
ingest-grok Add infrastructure to run REST tests on a multi-version cluster 2016-03-13 10:52:39 +01:00
lang-expression Added one minor comment for expressions tests. 2016-03-14 13:19:52 -07:00
lang-groovy remove suggest transport action 2016-03-23 16:37:56 -04:00
lang-mustache remove suggest transport action 2016-03-23 16:37:56 -04:00
lang-painless Split up Analyzer and Writer into multiple pieces. 2016-03-17 10:15:13 -07:00
reindex Stop using PROTOTYPE in NamedWriteableRegistry 2016-03-24 11:26:44 -04:00
build.gradle Enforce isolated mode for all plugins 2016-03-24 09:17:33 +01:00