Skip to content

Commit

Permalink
HHH-7620 - allow ValidatorFactory to be passed into EntityManagerFact…
Browse files Browse the repository at this point in the history
…oryBuilder : reordered EMF builder processing to better allow late ValidatorFactory and DataSource (HHH-7621) passing
  • Loading branch information
sebersole committed Sep 20, 2012
1 parent 35b9a9d commit d0f8834
Show file tree
Hide file tree
Showing 2 changed files with 167 additions and 238 deletions.
Expand Up @@ -90,6 +90,10 @@ private static List<StandardServiceInitiator> standardInitiatorList() {
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.
Expand Down Expand Up @@ -213,6 +217,15 @@ public ServiceRegistry buildServiceRegistry() {
return new StandardServiceRegistryImpl( bootstrapServiceRegistry, initiators, providedServices, settingsCopy );
}

/**
* 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.
*
Expand Down

0 comments on commit d0f8834

Please sign in to comment.