Documentation
Guides for the architecture and the OSS libraries that make up Apex Stem. Start with Get Started and move into the chapters you need.
Get Started
Getting Started
Get Started with Apex Stem
A short introduction to Apex Stem and how to take your first step — without rewriting anything.
Apex Stem: A Step-by-Step Guide to Adoption
Walk through adopting Apex Stem in an existing Salesforce codebase one step at a time — from your first Scribe query through Usecase carving and layered testing.
Design Philosophy
Architecture
Handler-Usecase Architecture
Apex Stem's core architecture. Why two layers, the responsibility of the Handler and Usecase layers, and how component classes are handled.
Layered Constructor Pattern
A design pattern that combines a clean production API and flexible test DI in one Usecase class, without a DI container.
Test Strategy
How Apex Stem maps its two layers to two kinds of tests: unit tests on Usecases with ApexEloquent, integration tests on Handlers with ApexBlueprint.
OSS Guides
Libraries
ApexEloquent Developer Guide
Entry point to the ApexEloquent documentation. Lists each topic (query builder / data access / relations) with links to the individual reference pages.
ApexBlueprint Developer Guide
Entry point to the ApexBlueprint documentation. A 4-tier structure (Setup / Guides / API Reference / Deep Dives) covering integration-test data generation.
ApexTrace Developer Guide
Comprehensive guide to ApexTrace, the lifecycle logging framework that ships with Apex Stem. Covers Trace's lifecycle methods, TraceFlow for test verification, nesting, and the two modes.
ApexTools Developer Guide
Entry point to ApexTools, the foundation OSS that ships with Apex Stem. Lists each tool with links to the individual reference pages.