Activate.java 601 B

123456789101112131415161718192021222324252627282930
  1. package cn.nosum.common.annotation;
  2. import java.lang.annotation.Documented;
  3. import java.lang.annotation.ElementType;
  4. import java.lang.annotation.Retention;
  5. import java.lang.annotation.RetentionPolicy;
  6. import java.lang.annotation.Target;
  7. @Documented
  8. @Retention(RetentionPolicy.RUNTIME)
  9. @Target({ElementType.TYPE, ElementType.METHOD})
  10. public @interface Activate {
  11. /**
  12. * 所属的组,一般是类名
  13. */
  14. String group() default "";
  15. /**
  16. * 是否激活
  17. */
  18. boolean value() default false;
  19. /**
  20. * 用于控制链路排序
  21. */
  22. int order() default 0;
  23. }