diff --git a/micro-infra-camel/src/main/groovy/com/ofg/infrastructure/camel/EnableCorrelationIdForCamel.java b/micro-infra-camel/src/main/groovy/com/ofg/infrastructure/camel/EnableCorrelationIdForCamel.java new file mode 100644 index 00000000..fc266a98 --- /dev/null +++ b/micro-infra-camel/src/main/groovy/com/ofg/infrastructure/camel/EnableCorrelationIdForCamel.java @@ -0,0 +1,21 @@ +package com.ofg.infrastructure.camel; + +import org.springframework.context.annotation.Import; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + + +/** + * Enables Correlation Id for Camel. + * + * @see com.ofg.infrastructure.camel.aspects.CorrelationIdOnCamelRouteAspect + */ +@Target(ElementType.TYPE) +@Retention(RetentionPolicy.RUNTIME) +@Import(CorrelationIdOnCamelRouteConfiguration.class) +public @interface EnableCorrelationIdForCamel { + +} diff --git a/micro-infra-spring-reactor/src/main/groovy/com/ofg/infrastructure/reactor/aspect/EnableCorrelationIdForReactor.java b/micro-infra-spring-reactor/src/main/groovy/com/ofg/infrastructure/reactor/aspect/EnableCorrelationIdForReactor.java index 8e32fd85..b4e2100a 100644 --- a/micro-infra-spring-reactor/src/main/groovy/com/ofg/infrastructure/reactor/aspect/EnableCorrelationIdForReactor.java +++ b/micro-infra-spring-reactor/src/main/groovy/com/ofg/infrastructure/reactor/aspect/EnableCorrelationIdForReactor.java @@ -9,7 +9,7 @@ import java.lang.annotation.Target; /** - * Enables support for {@link ReactorAspect}. + * Enables Correlation Id for Reactor. * * That way, combined with {@link com.ofg.infrastructure.reactor.event.ReactorEvent} and * {@link reactor.spring.annotation.Selector} annotations correlationId will be set for