ApexTools Guide
ApexTools contains small tools that raise testability and readability when you run Apex Stem. As new tools are needed, they will be added over time.
📦 To install ApexTools (unlocked package or git submodule), see Installing Apex Stem.
Tools Included
Click each card to jump to its detail page.
TriggerHandler
A base class that shapes the entry point processing from Triggers. Extend TriggerHandler to inherit the seven hooks plus andFinally, and override only the ones you need. A helper that narrows afterUpdate to records where specific fields changed is also bundled.
IHttpRequestHandler
A DI-aware HTTP request wrapper. The trio of IHttpRequestHandler / HttpRequestHandler / MockHttpRequestHandler lets you integrate external API calls with the Layered Constructor Pattern. Responses are declared with MockResponse: script mode when ordering is the specification, label mode when you sort by call site.
Read Next
- Handler-Usecase Architecture: the core architecture of Apex Stem where
TriggerHandlershines - Layered Constructor Pattern: the basic pattern that supports the DI design of
IHttpRequestHandler - Apex Stem Introduction Guide: four steps with working code
- ApexTools on GitHub: source code and the latest info