Skip to content

New Feature: Enhanced binding with BindingStrategy#59

Merged
jonloucks merged 3 commits intomainfrom
jonloucks-repository-if-not-present
Oct 13, 2025
Merged

New Feature: Enhanced binding with BindingStrategy#59
jonloucks merged 3 commits intomainfrom
jonloucks-repository-if-not-present

Conversation

@jonloucks
Copy link
Owner

@jonloucks jonloucks commented Oct 13, 2025

Adding overloaded methods to Contracts and Repository taking a BindStrategy.

Bind Strategy

  • ALWAYS : Bind the new promisor to the given contract always or else throws an error.
  • IF_NOT_BOUND : Bind the new promisor to the given contract if not already bound.
  • IF_ALLOWED: Bind the new promisor to the given contract only if replacement is allowed.

Upgrade impact to customers: None
Impact to forked repositories: We recommend changes to your repository.

@jonloucks jonloucks merged commit 0c01abb into main Oct 13, 2025
5 checks passed
@jonloucks jonloucks deleted the jonloucks-repository-if-not-present branch October 13, 2025 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant