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 SimpleResourceLocatorINSTANCESingleton access
-
Constructor Summary
Constructors Constructor Description SimpleResourceLocator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URLlocateResource(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:ResourceLocatorLocate the named resource- Specified by:
locateResourcein interfaceResourceLocator- Parameters:
resourceName- The resource name to locate- Returns:
- The located URL, or
nullif no match found
-
-