com.alibaba.android.arouter.facade.annotation.Interceptor 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;
/**
* Mark a interceptor to interception the route.
* BE ATTENTION : This annotation can be mark the implements of #{IInterceptor} ONLY!!!
*
* @author Alex Contact me.
* @version 1.0
* @since 16/8/23 14:03
*/
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.CLASS)
public @interface Interceptor {
/**
* The priority of interceptor, ARouter will be excute them follow the priority.
*/
int priority();
/**
* The name of interceptor, may be used to generate javadoc.
*/
String name() default "Default";
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy