Package org.hibernate.boot.spi
Class ClassLoaderAccessDelegateImpl
- java.lang.Object
-
- org.hibernate.boot.spi.ClassLoaderAccessDelegateImpl
-
- All Implemented Interfaces:
ClassLoaderAccess
public abstract class ClassLoaderAccessDelegateImpl extends Object implements ClassLoaderAccess
A ClassLoaderAccess implementation based on delegation
-
-
Constructor Summary
Constructors Constructor Description ClassLoaderAccessDelegateImpl()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description <T> Class<T>
classForName(String name)
Obtain a Class reference by nameprotected abstract ClassLoaderAccess
getDelegate()
URL
locateResource(String resourceName)
Locate a resource by name
-
-
-
Method Detail
-
getDelegate
protected abstract ClassLoaderAccess getDelegate()
-
classForName
public <T> Class<T> classForName(String name)
Description copied from interface:ClassLoaderAccess
Obtain a Class reference by name- Specified by:
classForName
in interfaceClassLoaderAccess
- Parameters:
name
- The name of the Class to get a reference to.- Returns:
- The Class.
-
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
-
-