private void preRecreate() { final EventListenerGroup<PreCollectionRecreateEventListener> listenerGroup = listenerGroup( EventType.PRE_COLLECTION_RECREATE ); if ( listenerGroup.isEmpty() ) { return; } final PreCollectionRecreateEvent event = new PreCollectionRecreateEvent( getPersister(), getCollection(), eventSource() ); for ( PreCollectionRecreateEventListener listener : listenerGroup.listeners() ) { listener.onPreRecreateCollection( event ); } }
private void preRecreate() { EventListenerGroup<PreCollectionRecreateEventListener> listenerGroup = listenerGroup( EventType.PRE_COLLECTION_RECREATE ); if ( listenerGroup.isEmpty() ) { return; } final PreCollectionRecreateEvent event = new PreCollectionRecreateEvent( getPersister(), getCollection(), eventSource() ); for ( PreCollectionRecreateEventListener listener : listenerGroup.listeners() ) { listener.onPreRecreateCollection( event ); } }
private void preRecreate() { final EventListenerGroup<PreCollectionRecreateEventListener> listenerGroup = listenerGroup( EventType.PRE_COLLECTION_RECREATE ); if ( listenerGroup.isEmpty() ) { return; } final PreCollectionRecreateEvent event = new PreCollectionRecreateEvent( getPersistentCollectionDescriptor(), getCollection(), eventSource() ); for ( PreCollectionRecreateEventListener listener : listenerGroup.listeners() ) { listener.onPreRecreateCollection( event ); } }
private void preRecreate() { EventListenerGroup<PreCollectionRecreateEventListener> listenerGroup = listenerGroup( EventType.PRE_COLLECTION_RECREATE ); if ( listenerGroup.isEmpty() ) { return; } final PreCollectionRecreateEvent event = new PreCollectionRecreateEvent( getPersister(), getCollection(), eventSource() ); for ( PreCollectionRecreateEventListener listener : listenerGroup.listeners() ) { listener.onPreRecreateCollection( event ); } }