Package org.hibernate.testing.boot
Class ExtraJavaServicesClassLoaderService
- java.lang.Object
-
- org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl
-
- org.hibernate.testing.boot.ExtraJavaServicesClassLoaderService
-
- All Implemented Interfaces:
Serializable
,ClassLoaderService
,ResourceLocator
,ResourceStreamLocator
,Service
,Stoppable
public class ExtraJavaServicesClassLoaderService extends ClassLoaderServiceImpl
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ExtraJavaServicesClassLoaderService.JavaServiceDescriptor<ROLE>
-
Nested classes/interfaces inherited from interface org.hibernate.boot.registry.classloading.spi.ClassLoaderService
ClassLoaderService.Work<T>
-
-
Constructor Summary
Constructors Constructor Description ExtraJavaServicesClassLoaderService(List<ExtraJavaServicesClassLoaderService.JavaServiceDescriptor<?>> extraJavaServices)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <S> Collection<S>
loadJavaServices(Class<S> serviceContract)
Discovers and instantiates implementations of the named service contract.-
Methods inherited from class org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl
classForName, fromConfigSettings, generateProxy, locateResource, locateResources, locateResourceStream, packageForNameOrNull, stop, workWithClassLoader
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.boot.registry.classloading.spi.ClassLoaderService
classForTypeName
-
-
-
-
Constructor Detail
-
ExtraJavaServicesClassLoaderService
public ExtraJavaServicesClassLoaderService(List<ExtraJavaServicesClassLoaderService.JavaServiceDescriptor<?>> extraJavaServices)
-
-
Method Detail
-
loadJavaServices
public <S> Collection<S> loadJavaServices(Class<S> serviceContract)
Description copied from interface:ClassLoaderService
Discovers and instantiates implementations of the named service contract.- Specified by:
loadJavaServices
in interfaceClassLoaderService
- Overrides:
loadJavaServices
in classClassLoaderServiceImpl
- Type Parameters:
S
- The type of the service contract- Parameters:
serviceContract
- The java type defining the service contract- Returns:
- The ordered set of discovered services.
- See Also:
JavaServiceLoadable
-
-