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

AAE-26989 Auto-proxying fix #1580

Draft
wants to merge 5 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,21 @@ public ActivitiMessagingDestinationTransformer activitiMessagingDestinationTrans
return new ActivitiMessagingDestinationTransformer(messagingProperties);
}

@Lazy
@Bean
public ActivitiMessagingDestinationsBeanPostProcessor activitiMessagingDestinationsBeanPostProcessor(
ActivitiMessagingDestinationTransformer destinationTransformer
) {
return new ActivitiMessagingDestinationsBeanPostProcessor(destinationTransformer);
}

@Lazy
@Bean
public InputConverterFunction toLowerCase() {
return String::toLowerCase;
}

@Lazy
@Bean
public InputConverterFunction escapeIllegalChars(@Lazy ActivitiCloudMessagingProperties messagingProperties) {
return value ->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
import org.springframework.cloud.stream.config.BinderFactoryAutoConfiguration;
import org.springframework.cloud.stream.function.FunctionConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Lazy;
import org.springframework.integration.core.GenericHandler;
import org.springframework.integration.core.GenericSelector;
import org.springframework.integration.dsl.IntegrationFlow;
Expand Down Expand Up @@ -61,6 +62,7 @@ IntegrationFlow functionBindingSelectorDiscardFlow() {
.get();
}

@Lazy
@Bean(name = "connectorBindingPostProcessor")
public BeanPostProcessor connectorBindingPostProcessor(
FunctionAnnotationService functionAnnotationService,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.DependsOn;
import org.springframework.context.annotation.Lazy;
import org.springframework.context.annotation.Primary;
import org.springframework.integration.core.GenericHandler;
import org.springframework.integration.core.GenericSelector;
Expand Down Expand Up @@ -108,6 +109,7 @@ IntegrationFlow functionBindingSelectorDiscardFlow() {
.get();
}

@Lazy
@Bean(name = "functionBindingBeanPostProcessor")
public BeanPostProcessor functionBindingBeanPostProcessor(
FunctionAnnotationService functionAnnotationService,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import org.springframework.cloud.stream.function.StreamFunctionProperties;
import org.springframework.cloud.stream.messaging.DirectWithAttributesChannel;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Lazy;
import org.springframework.messaging.MessageChannel;
import org.springframework.util.StringUtils;

Expand All @@ -34,6 +35,7 @@ public class InputBindingConfiguration extends AbstractFunctionalBindingConfigur

public static final String INPUT_BINDING = "_sink";

@Lazy
@Bean
public BeanPostProcessor inputBindingBeanPostProcessor(
FunctionAnnotationService functionAnnotationService,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
import org.springframework.cloud.stream.function.StreamFunctionProperties;
import org.springframework.cloud.stream.messaging.DirectWithAttributesChannel;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Lazy;
import org.springframework.messaging.Message;
import org.springframework.messaging.MessageChannel;
import org.springframework.messaging.MessageHeaders;
Expand All @@ -52,6 +53,7 @@ public class OutputBindingConfiguration extends AbstractFunctionalBindingConfigu

public static final String OUTPUT_BINDING = "_source";

@Lazy
@Bean
public BeanPostProcessor outputBindingBeanPostProcessor(
FunctionAnnotationService functionAnnotationService,
Expand Down
Loading