AnalysisSPILoader

class AnalysisSPILoader<S : AbstractAnalysisFactory>(clazz: KClass<S>, classloader: ClassLoader? = null)

Helper class for loading named SPIs from classpath (e.g. Tokenizers, TokenStreams).

Constructors

Link copied to clipboard
constructor(clazz: KClass<S>, classloader: ClassLoader? = null)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
Link copied to clipboard
fun lookupClass(name: String): KClass<out S>
Link copied to clipboard
Link copied to clipboard
fun reload(classloader: ClassLoader)

Reloads the internal SPI list from the given ClassLoader. Changes to the service list are visible after the method ends, all iterators (e.g., from .availableServices,...) stay consistent.