com.hp.message.event.BaseEvent Maven / Gradle / Ivy
package com.hp.message.event;
import org.springframework.context.ApplicationEvent;
/**
* @author 尚肖磊
* @create 2021-05-31 16:07
* @Description: 基础事件类
*/
public abstract class BaseEvent extends ApplicationEvent {
/**
* 消息数据对象
*/
protected T eventData;
public BaseEvent(Object source, T eventData) {
super(source);
this.eventData = eventData;
}
public T getEventData() {
return eventData;
}
}