johanhaleby / occurrent

Unintrusive Event Sourcing Library for the JVM
https://occurrent.org
120 stars 16 forks source link

Add @Subscription annotation to Spring module #152

Closed johanhaleby closed 5 months ago

johanhaleby commented 7 months ago

E.g.

@Subscription(id="mySubscriptionId", class=MyEvent.class)
public void something(MyEvent) {
  ..
}

See EnableRabbit that loads RabbitListenerConfigurationSelector that loads RabbitBootstrapConfiguration that loads RabbitListenerAnnotationBeanPostProcessor :)