AbstractPuller.java 478 B

12345678910111213141516
  1. package org.dbsyncer.manager.puller;
  2. import org.dbsyncer.manager.event.ClosedEvent;
  3. import org.springframework.beans.factory.annotation.Autowired;
  4. import org.springframework.context.ApplicationContext;
  5. public abstract class AbstractPuller implements Puller {
  6. @Autowired
  7. private ApplicationContext applicationContext;
  8. protected void publishClosedEvent(String metaId) {
  9. applicationContext.publishEvent(new ClosedEvent(applicationContext, metaId));
  10. }
  11. }