Permalink
Browse files

HHH-7620 - allow ValidatorFactory to be passed into EntityManagerFact…

…oryBuilder : reordered EMF builder processing to better allow late ValidatorFactory and DataSource (HHH-7621) passing
  • Loading branch information...
1 parent 35b9a9d commit d0f88347af9048e6756dc8a7b277495b7430563b @sebersole sebersole committed Sep 20, 2012
@@ -90,6 +90,10 @@ public StandardServiceRegistryBuilder(BootstrapServiceRegistry bootstrapServiceR
return initiators;
}
+ public BootstrapServiceRegistry getBootstrapServiceRegistry() {
+ return bootstrapServiceRegistry;
+ }
+
/**
* Read settings from a {@link Properties} file. Differs from {@link #configure()} and {@link #configure(String)}
* in that here we read a {@link Properties} file while for {@link #configure} we read the XML variant.
@@ -214,6 +218,15 @@ public ServiceRegistry buildServiceRegistry() {
}
/**
+ * Temporarily exposed since Configuration is still around and much code still uses Configuration. This allows
+ * code to configure the builder and access that to configure Configuration object (used from HEM atm).
+ */
+ @Deprecated
+ public Map getSettings() {
+ return settings;
+ }
+
+ /**
* Destroy a service registry. Applications should only destroy registries they have explicitly created.
*
* @param serviceRegistry The registry to be closed.
Oops, something went wrong.

0 comments on commit d0f8834

Please sign in to comment.