citerus/dddsample-core

Wrong Beans init order

Closed this issue · 1 comments

Spring initializes Beans in declared order.

In DDDSampleApplicationContext.java

“graphTraversalService” should be initialized before "routingService" because "routingService" requires "graphTraversalService"

"handlingEventFactory" should be initialized before "handlingEventRepository" because "handlingEventRepository" requires "handlingEventFactory"

Or they will just get null pointers.

You are correct, thanks!