SFDXHub
Browse/Apex Utility/at4dx (Advanced Techniques for DX)
🔧

at4dx (Advanced Techniques for DX)

Apex UtilityApexOpen Source
(0)

Advanced patterns and techniques built on top of Apex Enterprise Patterns. Provides application factory, platform event distribution, and dependency injection patterns for large-scale Salesforce applications.

About

Advanced Techniques To Adopt SalesforceDX Unlocked Packages

This is an example set of code to demonstrate the techniques that @ImJohnMDaniel and @john-storey-devops used to adopt Salesforce DX Unlocked Packages.

The Wiki for this codebase goes over these concepts in depth.

Core Frameworks In This Project

Folder Description
sfdx-source/core Core library, contains the foundation code required to support all of the techniques

Sample Code for the frameworks can be found in the related project AT4DX Sample Code

Folder Description
sfdx-source/reference-implementation-common Demonstration code around the Accounts SObject including base domains and selectors. Also contains examples of Application Factory Injection
sfdx-source/reference-implementation-marketing Demonstration code around the addition of Marketing specific SObject fields on Account. Also contains examples of Application Factory Injection, Selector Field Injection, Domain Process Injection, and Test Data Builder Field Injection
sfdx-source/reference-implementation-sales Demonstration code around the addition of Sales specific logic. Also contains examples of Application Factory Injection, and Subscription Based Platform Events
sfdx-source/reference-implementation-service Demonstration code around the addition of Service specific logic. Also contains examples of Application Factory Injection, and Subscription Based Platform Events
sfdx-source/other Miscellaeous code. Used to increase the session settings for a scratch org to be 24 hours

Setup

This wiki article gives instructions on how to setup the codebase in a SalesforceDX Scratch org.

Reviews (0)

No reviews yet. Be the first to leave one!

Details

Author
John M. Daniel
Category
Apex Utility
Published
Feb 16, 2026