Skip to content

Latest commit

 

History

History
 
 

compiler-plugin

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Compiler plugin

The compiler plugin transform the usage of the create function from Ktorfit-lib

It looks for the every usage of the create function from the Ktorfit-lib and adds an object of the wanted implementation class as an argument. Because of the naming convention of the generated classes we can deduce the name of the class from the name of type parameter.

val api = jvmKtorfit.create<ExampleApi>()

will be transformed to:

val api = jvmKtorfit.create<ExampleApi>(_ExampleApiImpl())