protected void notifySaveItems ( final ItemStateChangesLog changesLog , boolean isListenerTXAware ) { for ( MandatoryItemsPersistenceListener mlistener : mandatoryListeners ) { if ( mlistener . isTXAware ( ) == isListenerTXAware ) { mlistener . onSaveItems ( changesLog ) ; } } for ( ExtendedMandatoryItemsPersistenceListener mlistener : extendedMandatoryListeners ) { if ( mlistener . isTXAware ( ) == isListenerTXAware ) { mlistener . onSaveItems ( changesLog ) ; } } for ( ItemsPersistenceListener listener : listeners ) { if ( listener . isTXAware ( ) == isListenerTXAware ) { listener . onSaveItems ( changesLog ) ; } } }
Notify listeners about current changes log persistent state . Listeners notified according to is listener transaction aware .