更新时间:2021-07-16 11:11:39
coverpage
Apex Design Patterns
Credits
About the Authors
About the Reviewer
www.PacktPub.com
eBooks discount offers and more
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Chapter 1. An Introduction to Apex Design Pattern
Innovation
Design patterns and learning
Object-Oriented Programming (OOP)
OOPs in play
An interface
An abstract class
Advantages of design patterns
Design patterns and Apex
Gang of Four (GoF)
The SOLID principle
Summary
Chapter 2. Creational Patterns
Factory method pattern
Abstract factory pattern
The singleton pattern
The builder pattern
The prototype pattern
Chapter 3. Structural Patterns
The facade pattern
The adapter pattern
The bridge pattern
The composite pattern
The decorator pattern
The flyweight pattern
Chapter 4. Behavioral Patterns
The chain of responsibility pattern
The command pattern
The interpreter pattern
The iterator pattern
The visitor pattern
The memento pattern
The observer pattern
The state pattern
The strategy pattern
Chapter 5. Handling Concurrency in Apex
Understanding concurrency issues
Reproducing concurrency problems in Apex
The active object pattern
Chapter 6. Anti-patterns and Best Practices
Over usage of formula fields
Functional decomposition
Ignoring the equals() and hashcode() methods while performing object comparison
Circular dependencies
The ignoring toString() method
Avoid the God class
Error hiding
Hard-coding
Magic strings and numbers
Inheritance hell
SOQL inside a loop
DML inside a loop