Package org.hibernate.event.service.spi
Interface EventListenerRegistry
-
- All Superinterfaces:
Serializable
,Service
- All Known Implementing Classes:
EventListenerRegistryImpl
public interface EventListenerRegistry extends Service
Service for accessing eachEventListenerGroup
byEventType
, along with convenience methods for managing the listeners registered in eachEventListenerGroup
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addDuplicationStrategy(DuplicationStrategy strategy)
<T> void
appendListeners(EventType<T> type, Class<? extends T>... listeners)
<T> void
appendListeners(EventType<T> type, T... listeners)
<T> EventListenerGroup<T>
getEventListenerGroup(EventType<T> eventType)
<T> void
prependListeners(EventType<T> type, Class<? extends T>... listeners)
<T> void
prependListeners(EventType<T> type, T... listeners)
<T> void
setListeners(EventType<T> type, Class<? extends T>... listeners)
<T> void
setListeners(EventType<T> type, T... listeners)
-
-
-
Method Detail
-
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)
-
-