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

com.therouter.router.Autowired.kt Maven / Gradle / Ivy

There is a newer version: 1.2.3-rc17
Show newest version
package com.therouter.router

import java.lang.annotation.Retention
import java.lang.annotation.RetentionPolicy

/**
 * Annotation for parameters, which need autowired.
 */
@Retention(RetentionPolicy.SOURCE)
@Target(AnnotationTarget.FIELD)
annotation class Autowired(
    val name: String = "",
    val args: String = "",
    val id: Int = 0,  // If required, app will be crash when value is null.
    // Primitive type wont be check!
    val required: Boolean = false,  // Description of the field
    val description: String = "No desc."
)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy