private void populateSagaHandlers ( ) { synchronized ( sync ) { if ( scanResult == null ) { scanResult = new HashMap <> ( ) ; Collection < Class < ? extends Saga > > sagaTypes = scanner . scanForSagas ( ) ; for ( Class < ? extends Saga > sagaType : sagaTypes ) { SagaHandlersMap messageHandlers = determineMessageHandlers ( sagaType ) ; scanResult . put ( sagaType , messageHandlers ) ; } } } }
Creates entries in the scan result map containing the messages handlers of the sagas provided by the injected scanner .