aboutsummaryrefslogtreecommitdiff
path: root/juick-server-web/src/main/java/com/juick/server/component/MessageEvent.java
blob: 048de6a6eeaffb0ae1455e2a38ef3ae62e355cb5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package com.juick.server.component;

import com.juick.Message;
import org.springframework.context.ApplicationEvent;

public class MessageEvent extends ApplicationEvent {
    private Message message;
    /**
     * Create a new ApplicationEvent.
     *
     * @param source the object on which the event initially occurred (never {@code null})
     * @param message app message
     */
    public MessageEvent(Object source, Message message) {
        super(source);
        this.message = message;
    }

    public Message getMessage() {
        return message;
    }
}