I18n.java 744 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. package com.poyee.annotation;
  2. import com.poyee.common.enums.I18nFormat;
  3. import com.poyee.i18n.I18nSourcesEnum;
  4. import java.lang.annotation.ElementType;
  5. import java.lang.annotation.Retention;
  6. import java.lang.annotation.RetentionPolicy;
  7. import java.lang.annotation.Target;
  8. /**
  9. * 国际化
  10. */
  11. @Target({ElementType.FIELD, ElementType.METHOD, ElementType.TYPE})
  12. @Retention(RetentionPolicy.RUNTIME)
  13. public @interface I18n {
  14. /**
  15. * @return
  16. */
  17. boolean value() default true;
  18. /**
  19. * @return
  20. */
  21. String sheetName() default "";
  22. /**
  23. * @return
  24. */
  25. I18nFormat[] format() default {};
  26. /**
  27. * 国际化源
  28. * @return
  29. */
  30. I18nSourcesEnum dataSource() default I18nSourcesEnum.NONE;
  31. }