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

GH-2806: Pulsar binder defaults properties config #2811

Closed
wants to merge 2 commits into from

Conversation

sobychacko
Copy link
Contributor

  • Ensure that the Pulsar binder default properties can be properly expressed via spring.cloud.stream.pulsar.default property prefix.
  • Add the binder child context bean with the name binderName_binderProducingContext into the parent application context so that individual beans from the binder context can be easily queried.

Resolves #2806

 - Ensure that the Pulsar binder default properties can be properly
   expressed via spring.cloud.stream.pulsar.default property prefix.
 - Add the binder child context bean with the name binderName_binderProducingContext
   into the parent application context so that individual beans from the binder context
   can be easily queried.

Resolves spring-cloud#2806
@sobychacko sobychacko requested review from onobc and olegz September 18, 2023 17:24
Copy link
Contributor

@onobc onobc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work @sobychacko ! A couple of minor comments to address.

private final ApplicationContextRunner contextRunner = new ApplicationContextRunner()
.withUserConfiguration(DefaultPropertiesTestApp.class)
.withPropertyValues(
"--spring.pulsar.client.service-url=" + PulsarTestContainerSupport.getPulsarBrokerUrl(),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I ❤️ the tests.

One question, is the discrepancy in the property pair prefix intended? (some have --)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, it was not intended. Didn't cause an issue. Do you want me to take care of them? or will you adjust on merge?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you can take care of them that would be good as I was hoping to just merge from Github for this one.

Copy link
Contributor

@onobc onobc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for the updates @sobychacko . I will merge soon.

@onobc
Copy link
Contributor

onobc commented Sep 21, 2023

Closed via 34aae4b

@onobc onobc closed this Sep 21, 2023
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.

Ensure Pulsar binder has ExtendedBindingHandlerMappingsProviderConfiguration
2 participants