Guest User

Untitled

a guest
Jun 24th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.98 KB | None | 0 0
  1. package pe.joedayz.personservice.service;
  2.  
  3. import org.springframework.context.ApplicationEvent;
  4. import pe.joedayz.personservice.domain.Person;
  5.  
  6. public class PersonServiceEvent extends ApplicationEvent {
  7.  
  8. Person eventPerson;
  9. String eventType;
  10. /**
  11. * Create a new ApplicationEvent.
  12. *
  13. * @param source the object on which the event initially occurred (never {@code null})
  14. */
  15. public PersonServiceEvent(Object source, String eventType, Person person) {
  16. super(source);
  17. this.eventType = eventType;
  18. this.eventPerson = person;
  19. }
  20.  
  21. public String toString() {
  22. return "My PersonService Event";
  23. }
  24.  
  25. public Person getEventPerson() {
  26. return eventPerson;
  27. }
  28.  
  29. public void setEventPerson(Person eventPerson) {
  30. this.eventPerson = eventPerson;
  31. }
  32.  
  33. public String getEventType() {
  34. return eventType;
  35. }
  36.  
  37. public void setEventType(String eventType) {
  38. this.eventType = eventType;
  39. }
  40.  
  41. }
Add Comment
Please, Sign In to add comment