Package org.hibernate.testing.boot
Class ClassLoaderAccessTestingImpl
- java.lang.Object
-
- org.hibernate.testing.boot.ClassLoaderAccessTestingImpl
-
- All Implemented Interfaces:
ClassLoaderAccess
public class ClassLoaderAccessTestingImpl extends Object implements ClassLoaderAccess
-
-
Field Summary
Fields Modifier and Type Field Description static ClassLoaderAccessTestingImpl
INSTANCE
Singleton access
-
Constructor Summary
Constructors Constructor Description ClassLoaderAccessTestingImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Class<T>
classForName(String name)
Obtain aClass
reference by nameURL
locateResource(String resourceName)
Locate a resource by name
-
-
-
Field Detail
-
INSTANCE
public static final ClassLoaderAccessTestingImpl INSTANCE
Singleton access
-
-
Method Detail
-
classForName
public <T> Class<T> 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
-
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
-
-