mrzcc
2020-03-06 ecdac8a738f254db2b2ea28cbe3248f7a6a7eb2b
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
package com.java110.event.app.common;
 
import com.alibaba.fastjson.JSONArray;
import com.java110.core.context.AppContext;
import com.java110.event.app.AppEvent;
 
/**
 * 通用处理事件,有些服务的处理方式是一模一样的
 * 没有必要 重复去创建类 做重复工作
 *
 * Created by wuxw on 2017/9/15.
 */
public class AppCommonEvent extends AppEvent {
    /**
     * Constructs a prototypical Event.
     *
     * @param source  The object on which the Event initially occurred.
     * @param context
     * @throws IllegalArgumentException if source is null.
     */
    public AppCommonEvent(Object source, AppContext context) {
        this(source, context,null);
    }
 
 
    public AppCommonEvent(Object source, AppContext context, JSONArray data){
        super(source, context);
        this.setData(data);
    }
}