Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for binding param defaults #10

Open
douglascayers opened this issue Jul 22, 2018 · 0 comments
Open

Add support for binding param defaults #10

douglascayers opened this issue Jul 22, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@douglascayers
Copy link
Contributor

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.

@douglascayers douglascayers added the enhancement New feature or request label Jul 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant