Class KotlinCodeGenerationServiceLoader
-
- All Implemented Interfaces:
-
io.toolisticon.kotlin.generation.spi.KotlinCodeGenerationSpiListSupplier,java.util.function.Supplier,kotlin.Function,kotlin.Function0
public final class KotlinCodeGenerationServiceLoader implements KotlinCodeGenerationSpiListSupplier
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.
- Since:
0.2.0: does not filter on context type anymore, so all services are accepted regardless of their context type.
-
-
Field Summary
Fields Modifier and Type Field Description private final ClassLoaderclassLoader
-
Constructor Summary
Constructors Constructor Description KotlinCodeGenerationServiceLoader(ClassLoader classLoader)
-
Method Summary
Modifier and Type Method Description final ClassLoadergetClassLoader()KotlinCodeGenerationSpiListinvoke()-
-
Constructor Detail
-
KotlinCodeGenerationServiceLoader
KotlinCodeGenerationServiceLoader(ClassLoader classLoader)
-
-
Method Detail
-
getClassLoader
final ClassLoader getClassLoader()
-
invoke
KotlinCodeGenerationSpiList invoke()
-
-
-
-