AbstractPuller.java 484 B

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