blob: 8e3f3fa7c2cdb15882cf426b525b36a6e03c8961 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
package com.juick.service.component;
import com.juick.User;
import org.springframework.context.ApplicationEvent;
public class PingEvent extends ApplicationEvent {
private User pinger;
/**
* Create a new ApplicationEvent.
*
* @param source the object on which the event initially occurred (never {@code null})
*/
public PingEvent(Object source, User pinger) {
super(source);
this.pinger = pinger;
}
public User getPinger() {
return pinger;
}
}
|