Package org.hibernate.boot.internal
Class ClassLoaderAccessImpl
java.lang.Object
org.hibernate.boot.internal.ClassLoaderAccessImpl
- All Implemented Interfaces:
ClassLoaderAccess
Standard implementation of ClassLoaderAccess
-
Constructor Summary
ConstructorDescriptionClassLoaderAccessImpl
(ClassLoader jpaTempClassLoader, ClassLoaderService classLoaderService) ClassLoaderAccessImpl
(ClassLoader tempClassLoader, ServiceRegistry serviceRegistry) ClassLoaderAccessImpl
(ClassLoaderService classLoaderService) -
Method Summary
Modifier and TypeMethodDescriptionClass<?>
classForName
(String name) Obtain aClass
reference by namevoid
injectTempClassLoader
(ClassLoader jpaTempClassLoader) locateResource
(String resourceName) Locate a resource by namevoid
release()
-
Constructor Details
-
ClassLoaderAccessImpl
-
ClassLoaderAccessImpl
-
ClassLoaderAccessImpl
-
-
Method Details
-
injectTempClassLoader
-
classForName
Description copied from interface:ClassLoaderAccess
Obtain aClass
reference by name- Specified by:
classForName
in interfaceClassLoaderAccess
- Parameters:
name
- The name of the class- Returns:
- The
Class
object with the given name
-
getJpaTempClassLoader
-
locateResource
Description copied from interface:ClassLoaderAccess
Locate a resource by name- Specified by:
locateResource
in interfaceClassLoaderAccess
- Parameters:
resourceName
- The name of the resource to resolve- Returns:
- The located resource;
may return
null
to indicate the resource was not found
-
release
public void release()
-