@Primary
@Singleton
public class EventIntegrator
extends java.lang.Object
implements org.hibernate.integrator.spi.Integrator
Constructor and Description |
---|
EventIntegrator(@NotNull DateTimeProvider dateTimeProvider)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
disintegrate(org.hibernate.engine.spi.SessionFactoryImplementor sessionFactory,
org.hibernate.service.spi.SessionFactoryServiceRegistry serviceRegistry) |
void |
integrate(org.hibernate.boot.Metadata metadata,
org.hibernate.engine.spi.SessionFactoryImplementor sessionFactory,
org.hibernate.service.spi.SessionFactoryServiceRegistry serviceRegistry) |
public EventIntegrator(@NotNull @NotNull DateTimeProvider dateTimeProvider)
dateTimeProvider
- dependency that will provide the time.public void integrate(org.hibernate.boot.Metadata metadata, org.hibernate.engine.spi.SessionFactoryImplementor sessionFactory, org.hibernate.service.spi.SessionFactoryServiceRegistry serviceRegistry)
integrate
in interface org.hibernate.integrator.spi.Integrator
public void disintegrate(org.hibernate.engine.spi.SessionFactoryImplementor sessionFactory, org.hibernate.service.spi.SessionFactoryServiceRegistry serviceRegistry)
disintegrate
in interface org.hibernate.integrator.spi.Integrator