Class SpringSagaDescriptor

java.lang.Object
org.axonframework.extension.spring.config.SpringSagaDescriptor
All Implemented Interfaces:
EventProcessorDefinition.EventHandlerDescriptor, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

@Internal public class SpringSagaDescriptor extends Object implements EventProcessorDefinition.EventHandlerDescriptor, org.springframework.context.ApplicationContextAware
Describes an Axon Framework 4 Saga discovered in a Spring application context, carrying everything SagaProcessorConfigurer needs to assemble that Saga's event processor.

Implements EventProcessorDefinition.EventHandlerDescriptor so that an EventProcessorDefinition's handler selector can pick a Saga the same way it picks an ordinary event handler bean. The Saga itself is assembled separately from ordinary handlers, though: see SagaProcessorConfigurer.

This class is internal wiring created by SpringSagaLookup. Spring discovers only the Saga type; Axon creates Saga instances itself, without applying Spring bean post-processors or injecting Saga fields.

Since:
5.4.0
Author:
Allard Buijze, Mateusz Nowak