CREATE (default) - After lookup fails, attempt to create a new instance of the model. If the model requires options (via optionsRequired flag) and none are provided, it will fail with an exception.
CONTINUE - After lookup fails, do not attempt to create a new instance. The property will be set to undefined. Log the failure but allow execution to continue. Use for optional dependencies that can degrade gracefully.
FAIL - After lookup fails, throw an exception with detailed diagnostic logging. Use for critical dependencies where failure should halt execution.
Policy for handling dependency resolution failures.
All policies follow a lookup-first approach: The framework first checks if a model with the specified ID already exists. If found and the type matches, it returns the existing instance. Only if no existing model is found does the framework apply the resolution policy below.