force-di
force-di copied to clipboard
Generic DI library with support for Apex, Triggers, Visualforce and Lightning
The di_Injector.CustomMetadataModule class makes Schema.describeSObjects() call within a method. The concern is that this is an expensive call and could be optimized if it were outside of the main For...
As recently pointed out in another related blog (cannot find it now?)... JSON deserialization has some benefits.
For simple use cases with Lightning pages where the developer just wants a Lightning component on the page that would only be using the `` tag, then to reduce the...
In cases where no binding is found it might be preferable to have the injector redirect to the native UI for the given action... ?
Human errors and typos are inevitable. I often forget to prefix my Lightning component names with `c:` prefix. This request is for the binding resolver to automatically prefix with `c:`...
Following my last [blog](https://andyinthecloud.com/2018/07/29/test-driven-development-mocking-and-force-di/) and the code samples in its summary.... I am wondering if an option for the Apex Injector to optionally require a binding if the binding reference...
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)`...
https://github.com/google/guice/wiki/LinkedBindings
At present the Lightning c:injector outputs to console on error (unknown binding). Consider different options for this. Display something on screen, show toast, other options?