xiejun
2023-12-06 e9a590e862148092027510b15d33cdd32691a6f5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
package com.vci.ubcs.code.annotation;
 
import org.springframework.core.annotation.AliasFor;
import org.springframework.stereotype.Component;
 
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
 
/**
 * 自定义流水算法的注解
 *    @author xiejun
  * @date 2023-11-09
 */
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Component
public @interface MdmSerialAlgorithm {
 
    /**
     * bean的名称
     * 值,实际就是这个注解所在的类的全路径
     * @return 值
     */
    @AliasFor(
        annotation = Component.class
    )
    String value() default "";
 
    /**
     * 事件的名称
     * @return 事件名称
     */
    String text();
 
    /**
     * 描述
     * @return 描述
     */
    String description() default "";
 
    String serialType() default "";
}