Class EventListenerRegistryImpl
- java.lang.Object
-
- org.hibernate.event.service.internal.EventListenerRegistryImpl
-
- All Implemented Interfaces:
Serializable
,EventListenerRegistry
,Service
public class EventListenerRegistryImpl extends Object implements EventListenerRegistry
Standard implementation of EventListenerRegistry- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EventListenerRegistryImpl.Builder
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addDuplicationStrategy(DuplicationStrategy strategy)
<T> void
appendListeners(EventType<T> type, Class<? extends T>... listenerClasses)
<T> void
appendListeners(EventType<T> type, T... listeners)
<T> EventListenerGroup<T>
getEventListenerGroup(EventType<T> eventType)
<T> void
prependListeners(EventType<T> type, Class<? extends T>... listenerClasses)
<T> void
prependListeners(EventType<T> type, T... listeners)
<T> void
setListeners(EventType<T> type, Class<? extends T>... listenerClasses)
<T> void
setListeners(EventType<T> type, T... listeners)
-
-
-
Method Detail
-
getEventListenerGroup
public <T> EventListenerGroup<T> getEventListenerGroup(EventType<T> eventType)
- Specified by:
getEventListenerGroup
in interfaceEventListenerRegistry
-
addDuplicationStrategy
public void addDuplicationStrategy(DuplicationStrategy strategy)
- Specified by:
addDuplicationStrategy
in interfaceEventListenerRegistry
-
setListeners
@SafeVarargs public final <T> void setListeners(EventType<T> type, Class<? extends T>... listenerClasses)
- Specified by:
setListeners
in interfaceEventListenerRegistry
-
setListeners
@SafeVarargs public final <T> void setListeners(EventType<T> type, T... listeners)
- Specified by:
setListeners
in interfaceEventListenerRegistry
-
appendListeners
@SafeVarargs public final <T> void appendListeners(EventType<T> type, Class<? extends T>... listenerClasses)
- Specified by:
appendListeners
in interfaceEventListenerRegistry
-
appendListeners
@SafeVarargs public final <T> void appendListeners(EventType<T> type, T... listeners)
- Specified by:
appendListeners
in interfaceEventListenerRegistry
-
prependListeners
@SafeVarargs public final <T> void prependListeners(EventType<T> type, Class<? extends T>... listenerClasses)
- Specified by:
prependListeners
in interfaceEventListenerRegistry
-
prependListeners
@SafeVarargs public final <T> void prependListeners(EventType<T> type, T... listeners)
- Specified by:
prependListeners
in interfaceEventListenerRegistry
-
-