IncrementRefreshEvent.java 648 B

123456789101112131415161718192021222324
  1. package org.dbsyncer.common.event;
  2. import org.dbsyncer.common.model.Task;
  3. import org.springframework.context.ApplicationContext;
  4. import org.springframework.context.event.ApplicationContextEvent;
  5. public class IncrementRefreshEvent extends ApplicationContextEvent {
  6. private Task task;
  7. /**
  8. * Create a new ContextStartedEvent.
  9. *
  10. * @param source the {@code ApplicationContext} that the event is raised for (must not be {@code null})
  11. */
  12. public IncrementRefreshEvent(ApplicationContext source, Task task) {
  13. super(source);
  14. this.task = task;
  15. }
  16. public Task getTask() {
  17. return task;
  18. }
  19. }