com.alibaba.android.arouter.facade.annotation.Autowired Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of arouter-annotation Show documentation
Show all versions of arouter-annotation Show documentation
The annotation used in arouter api
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