Class ContributionClassLoaderService
java.lang.Object
org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl
ch.tocco.nice2.persist.core.api.hibernate.ContributionClassLoaderService
- All Implemented Interfaces:
Serializable,org.hibernate.boot.registry.classloading.spi.ClassLoaderService,org.hibernate.boot.ResourceLocator,org.hibernate.boot.ResourceStreamLocator,org.hibernate.service.Service,org.hibernate.service.spi.Stoppable
public class ContributionClassLoaderService
extends org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl
Extended implementation of hibernate's
ClassLoaderService which enables adding services at runtime
instead of using ServiceLoader.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.hibernate.boot.registry.classloading.spi.ClassLoaderService
org.hibernate.boot.registry.classloading.spi.ClassLoaderService.Work<T> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<S> voidaddContribution(Class<S> contributionClass, S contribution) <T> Class<T> classForName(String className) <S> Collection<S> loadJavaServices(Class<S> serviceContract) Methods inherited from class org.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl
fromConfigSettings, generateProxy, locateResource, locateResources, locateResourceStream, packageForNameOrNull, stop, workWithClassLoaderMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.boot.registry.classloading.spi.ClassLoaderService
classForTypeName
-
Constructor Details
-
ContributionClassLoaderService
public ContributionClassLoaderService()
-
-
Method Details
-
addContribution
-
loadJavaServices
- Specified by:
loadJavaServicesin interfaceorg.hibernate.boot.registry.classloading.spi.ClassLoaderService- Overrides:
loadJavaServicesin classorg.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl
-
classForName
- Specified by:
classForNamein interfaceorg.hibernate.boot.registry.classloading.spi.ClassLoaderService- Overrides:
classForNamein classorg.hibernate.boot.registry.classloading.internal.ClassLoaderServiceImpl
-