Stream: implementers
Topic: Code Generation enhancement
Grahame Grieve (May 15 2016 at 23:52):
I've just committed a change to the conformance resources - there's a new mapping called 'Object Implementation' that specifies some logical common base resources. This allows for improved code generation. Anyone doing code generation who wants to leverage this is free to ask more detailed questions if it's not obvious how to use them
Ewout Kramer (May 19 2016 at 09:37):
"logical common base resources"....what are those?
Grahame Grieve (May 19 2016 at 21:47):
intermediate abstract types that are generated for purposes of OO polymorphism but not specified in the resource content model
Grahame Grieve (May 19 2016 at 21:47):
look in the current java RI at BaseConformance
Bryn Rhodes (May 19 2016 at 21:48):
Is there any change to the way the resources that participate in these are defined?
Bryn Rhodes (May 19 2016 at 21:49):
Or is it just based on the common definitions?
Grahame Grieve (May 19 2016 at 21:51):
I didn't make any changes to the definitions of the resources themselves, only to added amn "object implementation" mapping. The notion is that when the general definition, cardinality, and type matches, from a generated code perspective, they can be common. So I marked up where there is useful commonlaity to share
Bryn Rhodes (May 19 2016 at 22:02):
Okay, that makes sense. I'll define one for the CQF-related resources and collapse ModuleMetadata into the definition for each resource.
Grahame Grieve (May 19 2016 at 22:11):
great. you never define the created type directly - just infer that it exists, the code generator makes it so
Last updated: Apr 12 2022 at 19:14 UTC