dangsn
2024-06-06 33321f5486fd586fda6fd3f46b7e71754fede28b
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
package com.vci.starter.web.annotation.bus;
 
import com.vci.starter.web.enumpck.VciChangeDocumentTypeEnum;
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 weidy
 * @date 2020/2/23
 */
@Target({ ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Component
public @interface VciChangeDataPlugin {
    /**
     * bean的名称
     * @return 默认为首写字母小写
     */
    @AliasFor(
            annotation = Component.class
    )
    String value() default "";
 
    /**
     * 要监听的业务类型的名称
     * @return 业务类型的名称
     */
    String[] btmType() default "";
 
    /**
     * 要监听修改的类型
     */
    VciChangeDocumentTypeEnum[] changeType() default VciChangeDocumentTypeEnum.ALL;
}