HHH-10044 checkstyle fix
This commit is contained in:
parent
53e81a2a4f
commit
9626603e75
|
@ -40,13 +40,13 @@ public class OsgiPersistenceProviderService implements ServiceFactory {
|
|||
public Object getService(Bundle requestingBundle, ServiceRegistration registration) {
|
||||
final OsgiClassLoader osgiClassLoader = new OsgiClassLoader();
|
||||
|
||||
// First, add the client bundle that's requesting the OSGi services.
|
||||
// First, add the client bundle that's requesting the OSGi services.
|
||||
osgiClassLoader.addBundle( requestingBundle );
|
||||
|
||||
// Then, automatically add hibernate-core and hibernate-entitymanager. These are needed to load resources
|
||||
// contained in those jars, such as em's persistence.xml schemas.
|
||||
osgiClassLoader.addBundle( FrameworkUtil.getBundle( SessionFactory.class ) );
|
||||
osgiClassLoader.addBundle( FrameworkUtil.getBundle( HibernateEntityManagerFactory.class ) );
|
||||
// Then, automatically add hibernate-core and hibernate-entitymanager. These are needed to load resources
|
||||
// contained in those jars, such as em's persistence.xml schemas.
|
||||
osgiClassLoader.addBundle( FrameworkUtil.getBundle( SessionFactory.class ) );
|
||||
osgiClassLoader.addBundle( FrameworkUtil.getBundle( HibernateEntityManagerFactory.class ) );
|
||||
|
||||
// Some "boot time" code does still rely on TCCL. "run time" code should all be using
|
||||
// ClassLoaderService now.
|
||||
|
|
Loading…
Reference in New Issue