Generic DI library with support for injecting Apex, Visualforce and Lightning code at runtime.
- General overview of the library features, configuration and use of Injectors
- Using the library to aid with Test Driven Development in Apex
- Dependency Injection, Flows, and Force DI
Folder | Description |
---|---|
force-di | Core library, contains Injector Apex API and <c:di_injector> VF and Lightning Components |
force-app-1 | Sample application using the API and Components to inject Apex, VF and Lightning at runtime |
force-app-2 | Sample package providing impls for various bindings above |
force-app-3 | Sample package providing impls for various bindings above |
force-di-trigger-demo | Sample basic trigger framework leveraging the API |
You have two options you can install via your web browser here or you can install via the Salesforce DX CLI as shown below.
sfdx plugins:install shane-sfdx-plugins
sfdx shane:github:package:install -g afawcett -r force-di