Class ClassLoaderAccessLazyImpl
- java.lang.Object
-
- org.hibernate.boot.model.internal.ClassLoaderAccessLazyImpl
-
- All Implemented Interfaces:
ClassLoaderAccess
public class ClassLoaderAccessLazyImpl extends Object implements ClassLoaderAccess
A ClassLoaderAccess implementation based on lazy access toMetadataBuildingOptions
-
-
Constructor Summary
Constructors Constructor Description ClassLoaderAccessLazyImpl(MetadataBuildingOptions metadataBuildingOptions)
-
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
-
-
-
Constructor Detail
-
ClassLoaderAccessLazyImpl
public ClassLoaderAccessLazyImpl(MetadataBuildingOptions metadataBuildingOptions)
-
-
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
-
-