org.hibernate.event.service.spi
Interface EventListenerRegistry
- All Superinterfaces:
- Serializable, Service
- All Known Implementing Classes:
- EventListenerRegistryImpl
public interface EventListenerRegistry
- extends Service, Serializable
Service for accessing each EventListenerGroup
by EventType
, as well as convenience
methods for managing the listeners registered in each EventListenerGroup
.
getEventListenerGroup
<T> EventListenerGroup<T> getEventListenerGroup(EventType<T> eventType)
addDuplicationStrategy
void addDuplicationStrategy(DuplicationStrategy strategy)
setListeners
<T> void setListeners(EventType<T> type,
Class<? extends T>... listeners)
setListeners
<T> void setListeners(EventType<T> type,
T... listeners)
appendListeners
<T> void appendListeners(EventType<T> type,
Class<? extends T>... listeners)
appendListeners
<T> void appendListeners(EventType<T> type,
T... listeners)
prependListeners
<T> void prependListeners(EventType<T> type,
Class<? extends T>... listeners)
prependListeners
<T> void prependListeners(EventType<T> type,
T... listeners)
Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.