An additional / complementary proposal concerning *reducing* NamedList
usage would be to identify where we are using NamedList for where NamedList
was a very poor choice.  Probably the most fertile area would be any
configuration -- NamedListInitializedPlugin.  But there's no real
replacement.  Note I've raised the topic of configuration initialization in
December 2023:
https://lists.apache.org/thread/0rbjyzlmfvj067kgr2krz5k0xrmqkch8 (Proposal
A is relevant).  But if we move away from NamedList for config, then we'd
still want a basic alternative to ConfigurablePlugin that would be easy to
port NamedListInitializedPlugin.  Probably use PluginInfoInitialized
instead.  Still, PluginInfo's internal initArgs is a NamedList.  It could
be a Map but we'd need to change or add an alternative for converting the
XML namedList stuff (<int name="foo">5</int> etc.) into an equivalent Map,
somehow dealing with the prospect of a repeating key (maybe make it illegal
in configuration).

Reply via email to