DynamicClass.java 446 B

123456789101112131415161718192021222324
  1. package cn.nosum.support.annotation;
  2. import org.springframework.core.annotation.AliasFor;
  3. import org.springframework.stereotype.Component;
  4. import java.lang.annotation.*;
  5. /**
  6. * DynamicClass Annotation.
  7. *
  8. * @author Young
  9. */
  10. @Component
  11. @Documented
  12. @Target({ElementType.TYPE})
  13. @Retention(RetentionPolicy.RUNTIME)
  14. public @interface DynamicClass {
  15. @AliasFor(
  16. annotation = Component.class
  17. )
  18. String value() default "";
  19. }