Package org.hibernate.event.service.spi
Interface EventListenerRegistry
-
- All Superinterfaces:
Serializable,Service
public interface EventListenerRegistry extends Service, Serializable
Service for accessing eachEventListenerGroupbyEventType, as well as convenience methods for managing the listeners registered in eachEventListenerGroup.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description voidaddDuplicationStrategy(DuplicationStrategy strategy)<T> voidappendListeners(EventType<T> type, Class<? extends T>... listeners)<T> voidappendListeners(EventType<T> type, T... listeners)<T> EventListenerGroup<T>getEventListenerGroup(EventType<T> eventType)default voidprepare(MetadataImplementor metadata)Deprecated.this method was only ever used to initialize the CallbackRegistry which is now managed as part of the EventEngine<T> voidprependListeners(EventType<T> type, Class<? extends T>... listeners)<T> voidprependListeners(EventType<T> type, T... listeners)<T> voidsetListeners(EventType<T> type, Class<? extends T>... listeners)<T> voidsetListeners(EventType<T> type, T... listeners)
-
-
-
Method Detail
-
prepare
@Deprecated default void prepare(MetadataImplementor metadata)
Deprecated.this method was only ever used to initialize the CallbackRegistry which is now managed as part of the EventEngine
-
getEventListenerGroup
<T> EventListenerGroup<T> getEventListenerGroup(EventType<T> eventType)
-
addDuplicationStrategy
void addDuplicationStrategy(DuplicationStrategy strategy)
-
setListeners
<T> void setListeners(EventType<T> type, T... listeners)
-
appendListeners
<T> void appendListeners(EventType<T> type, T... listeners)
-
prependListeners
<T> void prependListeners(EventType<T> type, T... listeners)
-
-