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

com.alibaba.android.arouter.facade.annotation.Autowired Maven / Gradle / Ivy

There is a newer version: 1.0.6
Show newest version
package com.alibaba.android.arouter.facade.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Annotation for field, which need autowired.
 *
 * @author zhilong Contact me.
 * @version 1.0
 * @since 2017/2/20 下午4:26
 */
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.CLASS)
public @interface Autowired {

    // Mark param's name or service name.
    String name() default "";

    // If required, app will be crash when value is null.
    // Primitive type wont be check!
    boolean required() default false;

    // Description of the field
    String desc() default "No desc.";
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy