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

Decouple AAE from spring-cloud-stream #910

Conversation

LorenzoDiGiuseppe
Copy link
Contributor

@LorenzoDiGiuseppe LorenzoDiGiuseppe commented Nov 21, 2022

This PR fixes Activiti/Activiti#4196 and Activiti/Activiti#3764 replacing the deprecated annotations from spring-cloud-stream with the new functional one provided by spring-cloud-function.

The annotation @StreamListener and @EnableBindings has been replaced with custom annotations:

  • @FunctionalBinding
  • @ConditionalFunctionalBinding
  • @ConnectorBinding

The PR introduces also some BeanPostProcessor for changing the binding configuration for the new annotations, while preserving the existing properties that are used by RabbitMQ and Kafka binder.

Existing interfaces declaring a MessageChannel have been implemented by beans that expose internal channels for backward compatibility with legacy code.

IntegrationFlows have been changed for using gateway interfaces that allows binding with the new functional approach.

@LorenzoDiGiuseppe LorenzoDiGiuseppe force-pushed the aae-6608-functional-stream-cloud-dev-ldigiuseppe-jsokolowski-preview branch from 4586e7a to ca1d40b Compare November 21, 2022 17:09
@LorenzoDiGiuseppe LorenzoDiGiuseppe force-pushed the aae-6608-functional-stream-cloud-dev-ldigiuseppe-jsokolowski-preview branch from f487156 to a8a7bc1 Compare December 5, 2022 18:00
@LorenzoDiGiuseppe LorenzoDiGiuseppe force-pushed the aae-6608-functional-stream-cloud-dev-ldigiuseppe-jsokolowski-preview branch 2 times, most recently from 8a917cd to b83f376 Compare December 20, 2022 09:20
@jsokolowskii jsokolowskii force-pushed the aae-6608-functional-stream-cloud-dev-ldigiuseppe-jsokolowski-preview branch from 483bd2e to 69ae50d Compare January 2, 2023 11:44
@LorenzoDiGiuseppe LorenzoDiGiuseppe marked this pull request as ready for review January 3, 2023 09:05
@LorenzoDiGiuseppe LorenzoDiGiuseppe changed the title [AAE-6608] decouple AAE from spring-cloud-stream preview Decouple AAE from spring-cloud-stream preview Jan 3, 2023
@LorenzoDiGiuseppe LorenzoDiGiuseppe force-pushed the aae-6608-functional-stream-cloud-dev-ldigiuseppe-jsokolowski-preview branch 2 times, most recently from 9be7afa to 0b94fde Compare January 3, 2023 17:41
@LorenzoDiGiuseppe LorenzoDiGiuseppe changed the title Decouple AAE from spring-cloud-stream preview Decouple AAE from spring-cloud-strea Jan 5, 2023
@LorenzoDiGiuseppe LorenzoDiGiuseppe changed the title Decouple AAE from spring-cloud-strea Decouple AAE from spring-cloud-stream Jan 5, 2023
@LorenzoDiGiuseppe LorenzoDiGiuseppe force-pushed the aae-6608-functional-stream-cloud-dev-ldigiuseppe-jsokolowski-preview branch from b190863 to 12e3e02 Compare January 5, 2023 13:54
Copy link
Member

@erdemedeiros erdemedeiros left a comment

Choose a reason for hiding this comment

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

Great job @LorenzoDiGiuseppe and @jsokolowskii ! This task was pending for a while.
A part from some minor details, it looks good to me.

@LorenzoDiGiuseppe LorenzoDiGiuseppe force-pushed the aae-6608-functional-stream-cloud-dev-ldigiuseppe-jsokolowski-preview branch 2 times, most recently from 01f9fb7 to 0b4e50c Compare January 23, 2023 07:50
@LorenzoDiGiuseppe LorenzoDiGiuseppe force-pushed the aae-6608-functional-stream-cloud-dev-ldigiuseppe-jsokolowski-preview branch from dc80d97 to ac621e5 Compare January 27, 2023 12:29
@LorenzoDiGiuseppe LorenzoDiGiuseppe deleted the aae-6608-functional-stream-cloud-dev-ldigiuseppe-jsokolowski-preview branch April 12, 2023 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants