All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commons.box.app.annotation.Labels Maven / Gradle / Ivy

The newest version!
package commons.box.app.annotation;


import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 集中定义label,注意此方法定义的label仅向消息源增加消息,而不参与property消息解析labelName的重写
 * 

*

* 规则: *

    *
  • 一、定义在类中:如果label的name为空则定义name为类名;
  • *
  • 二、定义在方法或字段上(property),如果label的label为空则定义name为property名,此规则与label相同;
  • *
  • 三、如果name以+开头,以默认基础name扩展后续键,此规则与label相同;
  • *
*/ @Retention(value = RetentionPolicy.RUNTIME) @Target(value = {ElementType.FIELD, ElementType.METHOD, ElementType.TYPE}) public @interface Labels { Label[] value() default {}; }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy