Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
Description
JaninoRelMetadataProvider uses the a complicated convention for binding handler instances to a the dynamically created handler. It requires the method to stated once in Metadata, then again MetadataHandler with slightly different signature and finally again a reference to the Metadata method must be included MetadataDef. This is needlessly rather complicated and verbose for something that is trying to reduce boiler plate.
Having JaninoRelMetadataProvider get the declared methods directly from the handler interface would decouple JaninoRelMetadataProvider from method definitions in Metadata and MetadataDef.