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/blogs/2019/07/breaking-runtime-dependencies-with-dependency-injectionDependency
Injection Framework for Salesforce apps – https://github.com/apex-enterprise-patterns/force-di
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: https://facebook.com/salesforcedevs/
Twitter: https://twitter.com/salesforcedevs
LinkedIn: https://linkedin.com/showcase/salesforce-developers