NamedSPILoader
class NamedSPILoader<S : NamedSPILoader.NamedSPI>(clazz: KClass<S>, classloader: ClassLoader? = null) : Iterable<S>
Helper class for loading named SPIs from classpath (e.g. Codec, PostingsFormat).
Types
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Reloads the internal SPI list from the given ClassLoader. Changes to the service list are visible after the method ends, all iterators (.iterator,...) stay consistent.