Class PersistenceUnitCallbackDefinition
java.lang.Object
org.hibernate.jpa.boot.spi.PersistenceUnitCallbackDefinition
- All Implemented Interfaces:
Serializable
Boot model representation of a Jakarta Persistence persistence-unit lifecycle callback.
- Since:
- 8.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPersistenceUnitCallbackDefinition(Class<?> listenerClass, Method callbackMethod, PersistenceUnitCallbackType callbackType, Class<?> callbackTargetType) -
Method Summary
Modifier and TypeMethodDescriptioncreateCallback(ManagedBeanRegistry beanRegistry) from(List<PersistenceUnitLifecycleEventHandler> lifecycleEventHandlers)
-
Constructor Details
-
PersistenceUnitCallbackDefinition
-
-
Method Details
-
createCallback
@Nonnull public PersistenceUnitCallback<?> createCallback(@Nonnull ManagedBeanRegistry beanRegistry) -
from
@Nonnull public static List<PersistenceUnitCallbackDefinition> from(@Nonnull List<PersistenceUnitLifecycleEventHandler> lifecycleEventHandlers)
-