All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.jooby.internal.apt.Source.kt Maven / Gradle / Ivy

There is a newer version: 3.5.3
Show newest version
package ${packageName}
${imports}
@io.jooby.annotation.Generated(${className}::class)
open class ${generatedClassName}(protected val factory: java.util.function.Function) : io.jooby.MvcExtension, io.jooby.MvcFactory<${className}?> {
    ${constructors}
    constructor(instance: ${className}) : this(java.util.function.Function { instance })

    constructor(provider: java.util.function.Supplier<${className}?>) : this(java.util.function.Function { provider.get()!! })

${methods}

    override fun supports(type: Class<${className}?>): Boolean {
        return type == ${className}::class.java
    }

    override fun create(provider: java.util.function.Supplier<${className}?>): io.jooby.Extension {
        return ${generatedClassName}(provider)
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy