Package org.hibernate.boot.internal
Class ClassLoaderAccessImpl
- java.lang.Object
-
- org.hibernate.boot.internal.ClassLoaderAccessImpl
-
- All Implemented Interfaces:
ClassLoaderAccess
public class ClassLoaderAccessImpl extends Object implements ClassLoaderAccess
Standard implementation of ClassLoaderAccess
-
-
Constructor Summary
Constructors Constructor Description ClassLoaderAccessImpl(ClassLoader jpaTempClassLoader, ClassLoaderService classLoaderService)
ClassLoaderAccessImpl(ClassLoader tempClassLoader, ServiceRegistry serviceRegistry)
ClassLoaderAccessImpl(ClassLoaderService classLoaderService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<?>
classForName(String name)
Obtain aClass
reference by nameClassLoader
getJpaTempClassLoader()
void
injectTempClassLoader(ClassLoader jpaTempClassLoader)
URL
locateResource(String resourceName)
Locate a resource by namevoid
release()
-
-
-
Constructor Detail
-
ClassLoaderAccessImpl
public ClassLoaderAccessImpl(ClassLoader jpaTempClassLoader, ClassLoaderService classLoaderService)
-
ClassLoaderAccessImpl
public ClassLoaderAccessImpl(ClassLoader tempClassLoader, ServiceRegistry serviceRegistry)
-
ClassLoaderAccessImpl
public ClassLoaderAccessImpl(ClassLoaderService classLoaderService)
-
-
Method Detail
-
injectTempClassLoader
public void injectTempClassLoader(ClassLoader jpaTempClassLoader)
-
classForName
public Class<?> classForName(String name)
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
public ClassLoader getJpaTempClassLoader()
-
locateResource
public URL locateResource(String resourceName)
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()
-
-