|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ClassLoaderService
A service for interacting with class loaders
| Method Summary | ||
|---|---|---|
|
classForName(String className)
Locate a class by name |
|
|
loadJavaServices(Class<S> serviceContract)
Discovers and instantiates implementations of the named service contract. |
|
URL |
locateResource(String name)
Locate a resource by name (classpath lookup) |
|
List<URL> |
locateResources(String name)
Locate a series of resource by name (classpath lookup) |
|
InputStream |
locateResourceStream(String name)
Locate a resource by name (classpath lookup) and gets its stream |
|
| Methods inherited from interface org.hibernate.service.spi.Stoppable |
|---|
stop |
| Method Detail |
|---|
<T> Class<T> classForName(String className)
className - The name of the class to locate
ClassLoadingException - Indicates the class could not be foundURL locateResource(String name)
name - The resource name.
null to indicate the resource was not foundInputStream locateResourceStream(String name)
name - The resource name.
null to indicate the resource was not foundList<URL> locateResources(String name)
name - The resource name.
null to indicate the resource was not found<S> LinkedHashSet<S> loadJavaServices(Class<S> serviceContract)
Service. Instead here we are talking about
services as defined by ServiceLoader.
S - The type of the service contractserviceContract - The java type defining the service contract
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||