All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.minlia.rocket.data.batis.event.publisher.BeforeCreatedEventPublisher Maven / Gradle / Ivy

The newest version!
package com.minlia.rocket.data.batis.event.publisher;

import com.minlia.rocket.data.batis.event.BeforeCreatedEvent;
import org.springframework.context.ApplicationEventPublisher;
import org.springframework.context.ApplicationEventPublisherAware;

public class BeforeCreatedEventPublisher implements ApplicationEventPublisherAware {

  private ApplicationEventPublisher publisher;

  @Override
  public void setApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher) {
    this.publisher = applicationEventPublisher;
  }

  public void publish(Object object) {
    BeforeCreatedEvent event = new BeforeCreatedEvent(object);
    this.publisher.publishEvent(event);
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy