Package org.hibernate.models.spi
Interface ClassLoading
- All Known Implementing Classes:
SimpleClassLoading
Access to load resources from a ClassLoader
-
Method Summary
Modifier and TypeMethodDescription<T> Class<T>classForName(String name) Obtain aClassreference by namelocateResource(String resourceName) Locate a resource by namepackageForName(String name)
-
Method Details
-
classForName
Obtain aClassreference by name- Parameters:
name- The name of the class- Returns:
- The
Classobject with the given name - Throws:
UnknownClassException- If no registration is found with the givenname
-
packageForName
-
locateResource
Locate a resource by name- Parameters:
resourceName- The name of the resource to resolve- Returns:
- The located resource;
may return
nullto indicate the resource was not found
-