Add support for binding param defaults
Opened this issue · 0 comments
douglascayers commented
In force-di
directory, add list of binding parameters to the Binding.cls
class so that default parameters can be provided at config time.
Adding parameters at runtime via the current getInstance(params)
method would merge the runtime parameters with the default parameters.
Binding parameters would have four properties:
- Name (string)
- Value (object)
- Type (string of the type to help with conversion/mapping purposes, like String, Boolean, Decimal)
- Overwritable (boolean, indicates if runtime parameters overwrite this param's value)
Both the Binding.cls for Apex API and the Binding__mdt needs to support the related binding parameters. For metadata configuration, propose a new Binding_Param__mdt whose parent is a Binding__mdt.