HHH-12444 - Introduce BootstrapContext
HHH-12443 - Introduce TypeConfiguration Fix checkstyle errors
This commit is contained in:
parent
6f798598a2
commit
cb6871ff40
|
@ -106,6 +106,7 @@ public interface BootstrapContext {
|
||||||
* we migrate away from Hibernate Commons Annotations to Jandex for annotation handling
|
* we migrate away from Hibernate Commons Annotations to Jandex for annotation handling
|
||||||
* and XMl->annotation merging.
|
* and XMl->annotation merging.
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
ReflectionManager getReflectionManager();
|
ReflectionManager getReflectionManager();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -46,4 +46,4 @@ public class PostUpdateEventListenerStandardImpl implements PostUpdateEventListe
|
||||||
public boolean requiresPostCommitHanding(EntityPersister persister) {
|
public boolean requiresPostCommitHanding(EntityPersister persister) {
|
||||||
return callbackRegistry.hasRegisteredCallbacks( persister.getMappedClass(), CallbackType.POST_UPDATE );
|
return callbackRegistry.hasRegisteredCallbacks( persister.getMappedClass(), CallbackType.POST_UPDATE );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -102,9 +102,10 @@ public class EventListenerRegistryImpl implements EventListenerRegistry, Stoppab
|
||||||
* @deprecated Use {@link EventListenerRegistryImpl#EventListenerRegistryImpl(BootstrapContext, SessionFactoryImplementor)} instead
|
* @deprecated Use {@link EventListenerRegistryImpl#EventListenerRegistryImpl(BootstrapContext, SessionFactoryImplementor)} instead
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
EventListenerRegistryImpl(SessionFactoryImplementor sessionFactory,
|
EventListenerRegistryImpl(
|
||||||
SessionFactoryOptions sessionFactoryOptions,
|
SessionFactoryImplementor sessionFactory,
|
||||||
ServiceRegistryImplementor registry) {
|
SessionFactoryOptions sessionFactoryOptions,
|
||||||
|
ServiceRegistryImplementor registry) {
|
||||||
this.sessionFactory = sessionFactory;
|
this.sessionFactory = sessionFactory;
|
||||||
|
|
||||||
this.callbackRegistry = new CallbackRegistryImpl();
|
this.callbackRegistry = new CallbackRegistryImpl();
|
||||||
|
|
|
@ -404,8 +404,9 @@ public final class SessionFactoryImpl implements SessionFactoryImplementor {
|
||||||
if ( !propertyName.startsWith( org.hibernate.jpa.AvailableSettings.EVENT_LISTENER_PREFIX ) ) {
|
if ( !propertyName.startsWith( org.hibernate.jpa.AvailableSettings.EVENT_LISTENER_PREFIX ) ) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
final String eventTypeName = propertyName.substring( org.hibernate.jpa.AvailableSettings.EVENT_LISTENER_PREFIX
|
final String eventTypeName = propertyName.substring(
|
||||||
.length() + 1 );
|
org.hibernate.jpa.AvailableSettings.EVENT_LISTENER_PREFIX.length() + 1
|
||||||
|
);
|
||||||
final EventType eventType = EventType.resolveEventTypeByName( eventTypeName );
|
final EventType eventType = EventType.resolveEventTypeByName( eventTypeName );
|
||||||
final EventListenerGroup eventListenerGroup = eventListenerRegistry.getEventListenerGroup( eventType );
|
final EventListenerGroup eventListenerGroup = eventListenerRegistry.getEventListenerGroup( eventType );
|
||||||
for ( String listenerImpl : ( (String) entry.getValue() ).split( " ," ) ) {
|
for ( String listenerImpl : ( (String) entry.getValue() ).split( " ," ) ) {
|
||||||
|
|
|
@ -9,4 +9,3 @@
|
||||||
* Internal details of implementing support for JPA callbacks
|
* Internal details of implementing support for JPA callbacks
|
||||||
*/
|
*/
|
||||||
package org.hibernate.jpa.event.internal;
|
package org.hibernate.jpa.event.internal;
|
||||||
|
|
||||||
|
|
|
@ -9,4 +9,3 @@
|
||||||
* The SPI contracts for supporting JPA lifecycle callbacks.
|
* The SPI contracts for supporting JPA lifecycle callbacks.
|
||||||
*/
|
*/
|
||||||
package org.hibernate.jpa.event.spi;
|
package org.hibernate.jpa.event.spi;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue