HHH-14047 Expose some methods of EntityManagerFactoryBuilderImpl to extensions
This commit is contained in:
parent
76e305ba75
commit
c013ae12b7
|
@ -1216,7 +1216,10 @@ public class EntityManagerFactoryBuilderImpl implements EntityManagerFactoryBuil
|
||||||
// todo : close the bootstrap registry (not critical, but nice to do)
|
// todo : close the bootstrap registry (not critical, but nice to do)
|
||||||
}
|
}
|
||||||
|
|
||||||
private MetadataImplementor metadata() {
|
/**
|
||||||
|
* Used by extensions : Hibernate Reactive
|
||||||
|
*/
|
||||||
|
protected MetadataImplementor metadata() {
|
||||||
if ( this.metadata == null ) {
|
if ( this.metadata == null ) {
|
||||||
this.metadata = MetadataBuildingProcess.complete(
|
this.metadata = MetadataBuildingProcess.complete(
|
||||||
managedResources,
|
managedResources,
|
||||||
|
@ -1328,7 +1331,7 @@ public class EntityManagerFactoryBuilderImpl implements EntityManagerFactoryBuil
|
||||||
return persistenceException( message, null );
|
return persistenceException( message, null );
|
||||||
}
|
}
|
||||||
|
|
||||||
private PersistenceException persistenceException(String message, Exception cause) {
|
protected PersistenceException persistenceException(String message, Exception cause) {
|
||||||
return new PersistenceException(
|
return new PersistenceException(
|
||||||
getExceptionHeader() + message,
|
getExceptionHeader() + message,
|
||||||
cause
|
cause
|
||||||
|
@ -1448,4 +1451,12 @@ public class EntityManagerFactoryBuilderImpl implements EntityManagerFactoryBuil
|
||||||
|
|
||||||
return instance;
|
return instance;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Exposed to extensions: see Hibernate Reactive
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
protected StandardServiceRegistry getStandardServiceRegistry() {
|
||||||
|
return standardServiceRegistry;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue