Injecting Spring Component in event handler

Is there a way to get to inject to Factory like Spring singleton component in event handler of aggregate root?

Thanks and Cheers…

Also same is possible in Entity… when Entity needs Spring singleton components?

Yes, just add the required resource type to the method. When using Spring, Axon will automatically resolve parameters to available Spring beans.

See: http://www.axonframework.org/docs/2.0/event-processing.html#annotated-event-handlers

Cheers,

Allard