DependencyConflictResult

Represents the result of a dependency conflict resolution within a dependency injection system.

A conflict occurs when two or more dependency creation functions are associated with the same dependency key. This sealed interface defines possible ways to resolve these conflicts.

The implementations include:

  • KeepPrevious: Retain the previously registered dependency.

  • KeepNew: Replace the previous dependency with the newly registered one.

  • Ambiguous: Mark the conflict as ambiguous and unresolved.

  • Conflict: Indicate a detected irreconcilable conflict that cannot be resolved.

  • Replace: Replace the existing dependency with a specific creation function.

Report a problem

Inheritors

Types

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard