blob: af2f579ad8f55cbcdd9010839c6bb2b7a92ba08a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
package com.juick.service.component;
import com.juick.User;
import org.springframework.context.ApplicationEvent;
import org.springframework.lang.NonNull;
public class UserUpdatedEvent extends ApplicationEvent {
private User user;
/**
* Generated when user is updated (avatar changed, etc).
*
* @param source the object on which the event initially occurred (never {@code null})
* @param user updated user
*/
public UserUpdatedEvent(@NonNull Object source, User user) {
super(source);
this.user = user;
}
public User getUser() {
return user;
}
}
|