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
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Nested classes/interfaces inherited from interface org.hibernate.boot.registry.classloading.spi.ClassLoaderService
ClassLoaderService.Work<T>
-
Constructor Summary
ConstructorsConstructorDescriptionExtraJavaServicesClassLoaderService
(List<ExtraJavaServicesClassLoaderService.JavaServiceDescriptor<?>> extraJavaServices) -
Method Summary
Modifier and TypeMethodDescription<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, 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 Details
-
ExtraJavaServicesClassLoaderService
public ExtraJavaServicesClassLoaderService(List<ExtraJavaServicesClassLoaderService.JavaServiceDescriptor<?>> extraJavaServices)
-
-
Method Details
-
loadJavaServices
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:
-