HHH-9727 - Slight redesign to bootstrapping APIs to allow for OGM bootstrapping

This commit is contained in:
Steve Ebersole 2015-04-20 15:21:37 -05:00
parent bf3669a7de
commit 4541f7b501
1 changed files with 4 additions and 5 deletions

View File

@ -286,15 +286,14 @@ public class StandardServiceRegistryBuilder {
*/
@SuppressWarnings("unchecked")
public StandardServiceRegistry build() {
final Map settingsCopy = new HashMap();
settingsCopy.putAll( settings );
Environment.verifyProperties( settingsCopy );
ConfigurationHelper.resolvePlaceHolders( settingsCopy );
applyServiceContributingIntegrators();
applyServiceContributors();
final Map settingsCopy = new HashMap();
settingsCopy.putAll( settings );
settingsCopy.put( org.hibernate.boot.cfgxml.spi.CfgXmlAccessService.LOADED_CONFIG_KEY, aggregatedCfgXml );
Environment.verifyProperties( settingsCopy );
ConfigurationHelper.resolvePlaceHolders( settingsCopy );
return new StandardServiceRegistryImpl(
autoCloseRegistry,