81.1 F
Tampa
Friday, September 29, 2023
spot_img
spot_img

Write Flexible Apex using Dependency Injection | Developer Quick Takes

Date:

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

crm erp

Popular

More like this
Related

Goodbye Claris Pro, Hello Again FileMaker Pro

If you missed Claris’ announcement from late August on...

Using Claris Connect with AWS Simple Notification Service (SNS)

In our previous blog post, we described Claris Connect as an...

Integrating your CRM with other applications

Integrating your CRM with other applications can be achieved...

CRM Explained – Data Management 101

A CRM system helps companies stay connected to customers,...