Skip to content
This repository has been archived by the owner on Jul 26, 2024. It is now read-only.

Commit

Permalink
Provide in-memory sink impl as fallback.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ralf Ueberfuhr committed Jun 24, 2024
1 parent fda41fd commit 6bca984
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package de.sample.schulung.accounts.domain.sink;

import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;

@AutoConfiguration
public class CustomerSinkAutoConfiguration {

@Bean
@ConditionalOnMissingBean
CustomersSink inMemoryCustomersSink() {
return new CustomersSinkInMemoryImpl();
}

}

0 comments on commit 6bca984

Please sign in to comment.