Write Flexible Apex using Dependency Injection | Developer Quick Takes

Опубликовано: 08 Октябрь 2024
на канале: Salesforce Developers
8,633
265

In this video, we will show you how to apply Dependency Injection to Apex so that you can write modular and reusable code that is flexible to potential future changes in the requirement.
To learn more check out below resources -
Blog - https://developer.salesforce.com/blog...
Dependency Injection Framework for Salesforce apps - https://github.com/apex-enterprise-pa...

00:00 Introduction
00:40 What is dependency Injection
01:25 What is tight coupling
02:30 Using Interfaces
03:25 Use Injector Class for DI
06:25 Pros and Cons of DI
07:45 Additional Resources


Connect with Salesforce Developers:
Website: https://developer.salesforce.com/
Facebook:   / salesforcedevs  
Twitter:   / salesforcedevs  
LinkedIn:   / salesforce-developers