Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove BindingType from BindingGraphFactory resolution logic. #4473

Merged
merged 1 commit into from
Oct 9, 2024

Conversation

copybara-service[bot]
Copy link

Remove BindingType from BindingGraphFactory resolution logic.

This CL makes a number of changes:

  • Makes Binding's binding type optional at creation time.
  • Makes BindingFactory set Optional.empty() if a binding type cannot be determined from the binding element.
  • Adds BindingNode#withBindingType(BindingType) to allow setting the binding type for certain bindings after they've been created.
  • Implements BindingGraphTransformations#withFixedBindingTypes(MutableNetwork) to fix missing binding types after the network is fully constructed.
  • Removes the BindingGraphFactory.Resolver#createDelegateBindings logic and replace it with BindingFactory#delegateBinding.

RELNOTES=N/A

This CL makes a number of changes:

  * Makes `Binding`'s binding type optional at creation time.
  * Makes `BindingFactory` set `Optional.empty()` if a binding type cannot be determined from the binding element.
  * Adds `BindingNode#withBindingType(BindingType)` to allow setting the binding type for certain bindings after they've been created.
  * Implements `BindingGraphTransformations#withFixedBindingTypes(MutableNetwork)` to fix missing binding types after the network is fully constructed.
  * Removes the `BindingGraphFactory.Resolver#createDelegateBindings` logic and replace it with `BindingFactory#delegateBinding`.

RELNOTES=N/A
PiperOrigin-RevId: 684097253
@copybara-service copybara-service bot merged commit a03263c into master Oct 9, 2024
@copybara-service copybara-service bot deleted the test_676112381 branch October 9, 2024 17:57
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