Class ClassLoaderServiceImpl

java.lang.Object
org.infinispan.search.mapper.mapping.impl.ClassLoaderServiceImpl
All Implemented Interfaces:
org.hibernate.search.engine.environment.classpath.spi.ClassResolver, org.hibernate.search.engine.environment.classpath.spi.ResourceResolver, org.hibernate.search.engine.environment.classpath.spi.ServiceResolver

public final class ClassLoaderServiceImpl extends Object implements org.hibernate.search.engine.environment.classpath.spi.ClassResolver, org.hibernate.search.engine.environment.classpath.spi.ResourceResolver, org.hibernate.search.engine.environment.classpath.spi.ServiceResolver
An implementation of the ClassResolver, ResourceResolver and ServiceResolver contracts that just delegates loading to an actual ClassLoader.
Since:
9.2
Author:
anistor@redhat.com
  • Constructor Details

    • ClassLoaderServiceImpl

      public ClassLoaderServiceImpl(ClassLoader classLoader)
  • Method Details

    • classForName

      public Class<?> classForName(String className)
      Specified by:
      classForName in interface org.hibernate.search.engine.environment.classpath.spi.ClassResolver
    • locateResourceStream

      public InputStream locateResourceStream(String name)
      Specified by:
      locateResourceStream in interface org.hibernate.search.engine.environment.classpath.spi.ResourceResolver
    • loadJavaServices

      public <S> Iterable<S> loadJavaServices(Class<S> serviceContract)
      Specified by:
      loadJavaServices in interface org.hibernate.search.engine.environment.classpath.spi.ServiceResolver