Class EventListenerRegistryImpl.Builder
- java.lang.Object
-
- org.hibernate.event.service.internal.EventListenerRegistryImpl.Builder
-
- Enclosing class:
- EventListenerRegistryImpl
public static class EventListenerRegistryImpl.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder(CallbackRegistry callbackRegistry, boolean jpaBootstrap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EventListenerRegistry
buildRegistry(Map<String,EventType<?>> registeredEventTypes)
<T> EventListenerGroup<T>
getListenerGroup(EventType<T> eventType)
<T> void
prepareListeners(EventType<T> eventType)
<T> void
prepareListeners(EventType<T> type, T defaultListener)
<T> void
prepareListeners(EventType<T> type, T defaultListener, Function<EventType<T>,org.hibernate.event.service.internal.EventListenerGroupImpl<T>> groupCreator)
-
-
-
Constructor Detail
-
Builder
public Builder(CallbackRegistry callbackRegistry, boolean jpaBootstrap)
-
-
Method Detail
-
prepareListeners
public <T> void prepareListeners(EventType<T> eventType)
-
prepareListeners
public <T> void prepareListeners(EventType<T> type, T defaultListener)
-
prepareListeners
public <T> void prepareListeners(EventType<T> type, T defaultListener, Function<EventType<T>,org.hibernate.event.service.internal.EventListenerGroupImpl<T>> groupCreator)
-
getListenerGroup
public <T> EventListenerGroup<T> getListenerGroup(EventType<T> eventType)
-
buildRegistry
public EventListenerRegistry buildRegistry(Map<String,EventType<?>> registeredEventTypes)
-
-