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

com.breuninger.boot.jobs.eventbus.EventBusConfiguration Maven / Gradle / Ivy

There is a newer version: 2.0.5.RELEASE
Show newest version
package com.breuninger.boot.jobs.eventbus;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.breuninger.boot.jobs.service.JobService;

@Configuration
public class EventBusConfiguration {

  private final JobService jobService;

  public EventBusConfiguration(final JobService jobService) {
    this.jobService = jobService;
  }

  @Bean
  public JobStateChangeListener logJobEventListener() {
    return new LogJobStateChangeListener();
  }

  @Bean
  public JobStateChangeListener persistenceJobEventListener() {
    return new PersistenceJobStateChangeListener(jobService);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy