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

com.hp.message.event.BaseEvent Maven / Gradle / Ivy

There is a newer version: 1.2.1
Show newest version
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;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy