[ 
https://issues.apache.org/jira/browse/CALCITE-4550?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

James Starr updated CALCITE-4550:
---------------------------------
    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.  

  was:
JaninoRelMetadataProvider uses the a complicated heuristic 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.  


> Simplify JaninoRelMetadataProvider API for binding methods
> ----------------------------------------------------------
>
>                 Key: CALCITE-4550
>                 URL: https://issues.apache.org/jira/browse/CALCITE-4550
>             Project: Calcite
>          Issue Type: Improvement
>          Components: core
>            Reporter: James Starr
>            Priority: Major
>
> 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.  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to