How a Locator Pattern Bridges Declarative Definitions and Business App Runtimes
A Locator is a software mechanism in business applications that resolves human-entered references — such as customer codes or product names — into stable, canonical record identities. The concept involves separating a declarative definition from its runtime execution, using five core objects: LocatorDefinition, LocatorRequest, LocatorContext, LocatorEngine, and LocatorResult. The LocatorDefinition describes static properties like searchable fields, key fields, and result limits, while the remaining objects handle live execution and outcomes. This separation prevents repetitive logic from accumulating inside controllers or event handlers, providing a consistent contract across the application. The Locator serves as a practical case study for a broader pattern used in many business frameworks, where declarative descriptions are paired with dedicated runtime engines.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in