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:
java.io.Serializable
,ClassLoaderService
,Service
,Stoppable
public class ExtraJavaServicesClassLoaderService extends org.hibernate.boot.registry.classloading.internal.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(java.util.List<ExtraJavaServicesClassLoaderService.JavaServiceDescriptor<?>> extraJavaServices)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <S> java.util.Collection<S>
loadJavaServices(java.lang.Class<S> serviceContract)
Discovers and instantiates implementations of the named service contract.
-
-
-
Constructor Detail
-
ExtraJavaServicesClassLoaderService
public ExtraJavaServicesClassLoaderService(java.util.List<ExtraJavaServicesClassLoaderService.JavaServiceDescriptor<?>> extraJavaServices)
-
-
Method Detail
-
loadJavaServices
public <S> java.util.Collection<S> loadJavaServices(java.lang.Class<S> serviceContract)
Description copied from interface:ClassLoaderService
Discovers and instantiates implementations of the named service contract. NOTE : the terms service here is used differently thanService
. Instead here we are talking about services as defined byServiceLoader
.- Specified by:
loadJavaServices
in interfaceClassLoaderService
- Overrides:
loadJavaServices
in classorg.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl
- 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.
-
-