|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.service.classloading.internal.ClassLoaderServiceImpl
public class ClassLoaderServiceImpl
Standard implementation of the service for interacting with class loaders
| Constructor Summary | |
|---|---|
ClassLoaderServiceImpl()
|
|
ClassLoaderServiceImpl(ClassLoader classLoader)
|
|
ClassLoaderServiceImpl(List<ClassLoader> providedClassLoaders)
|
|
| Method Summary | ||
|---|---|---|
|
classForName(String className)
Locate a class by name |
|
static ClassLoaderServiceImpl |
fromConfigSettings(Map configVales)
Deprecated. |
|
|
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 |
|
void |
stop()
Stop phase notification |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClassLoaderServiceImpl()
public ClassLoaderServiceImpl(ClassLoader classLoader)
public ClassLoaderServiceImpl(List<ClassLoader> providedClassLoaders)
| Method Detail |
|---|
@Deprecated public static ClassLoaderServiceImpl fromConfigSettings(Map configVales)
public <T> Class<T> classForName(String className)
ClassLoaderService
classForName in interface ClassLoaderServiceclassName - The name of the class to locate
public URL locateResource(String name)
ClassLoaderService
locateResource in interface ClassLoaderServicename - The resource name.
null to indicate the resource was not foundpublic InputStream locateResourceStream(String name)
ClassLoaderService
locateResourceStream in interface ClassLoaderServicename - The resource name.
null to indicate the resource was not foundpublic List<URL> locateResources(String name)
ClassLoaderService
locateResources in interface ClassLoaderServicename - The resource name.
null to indicate the resource was not foundpublic <S> LinkedHashSet<S> loadJavaServices(Class<S> serviceContract)
ClassLoaderServiceService. Instead here we are talking about
services as defined by ServiceLoader.
loadJavaServices in interface ClassLoaderServiceS - The type of the service contractserviceContract - The java type defining the service contract
public void stop()
Stoppable
stop in interface Stoppable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||