Specification Pattern
← Back to Modern and Functional Patterns
Composable business rules. Encapsulate business rules as objects that can be combined using boolean logic (AND, OR, NOT). Enables reusable, testable, and composable domain logic for filtering, validation, and selection.
Key Properties
Related
- Repository Pattern (specifications as query criteria)
- Domain-Driven Design (express domain rules)