Package org.hibernate.boot.internal
Class SimpleResourceLocator
- java.lang.Object
-
- org.hibernate.boot.internal.SimpleResourceLocator
-
- All Implemented Interfaces:
ResourceLocator
public class SimpleResourceLocator extends Object implements ResourceLocator
Simple ResourceLocator impl using its own ClassLoader to locate the resource
-
-
Field Summary
Fields Modifier and Type Field Description static SimpleResourceLocator
INSTANCE
Singleton access
-
Constructor Summary
Constructors Constructor Description SimpleResourceLocator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URL
locateResource(String resourceName)
Locate the named resource
-
-
-
Field Detail
-
INSTANCE
public static final SimpleResourceLocator INSTANCE
Singleton access
-
-
Method Detail
-
locateResource
public URL locateResource(String resourceName)
Description copied from interface:ResourceLocator
Locate the named resource- Specified by:
locateResource
in interfaceResourceLocator
- Parameters:
resourceName
- The resource name to locate- Returns:
- The located URL, or
null
if no match found
-
-