Class KotlinCodeGenerationServiceLoader
-
- All Implemented Interfaces:
-
kotlin.Function
,kotlin.Function0
public final class KotlinCodeGenerationServiceLoader implements Function0<KotlinCodeGenerationSpiRegistry>
Provides KotlinCodeGenerationSpiRegistry using ServiceLoader.
To avoid too many ´META-INF/services` declarations, all KotlinCodeGenerationSpi instances are declared in one single resource. The loading mechanism automatically sorts them into strategies and processors.
-
-
Field Summary
Fields Modifier and Type Field Description private final KClass<?>
contextTypeUpperBound
private final ClassLoader
classLoader
private final Set<String>
exclusions
-
Constructor Summary
Constructors Constructor Description KotlinCodeGenerationServiceLoader(KClass<?> contextTypeUpperBound, ClassLoader classLoader, Set<String> exclusions)
-
Method Summary
Modifier and Type Method Description final KClass<?>
getContextTypeUpperBound()
final ClassLoader
getClassLoader()
final Set<String>
getExclusions()
KotlinCodeGenerationSpiRegistry
invoke()
-
-
Constructor Detail
-
KotlinCodeGenerationServiceLoader
KotlinCodeGenerationServiceLoader(KClass<?> contextTypeUpperBound, ClassLoader classLoader, Set<String> exclusions)
-
-
Method Detail
-
getContextTypeUpperBound
final KClass<?> getContextTypeUpperBound()
-
getClassLoader
final ClassLoader getClassLoader()
-
getExclusions
final Set<String> getExclusions()
-
invoke
KotlinCodeGenerationSpiRegistry invoke()
-
-
-
-