Skip to content

Commit

Permalink
Fixing no unique bean definition exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Vignesh-kalyanasundaram committed Mar 21, 2024
1 parent 3199ce2 commit 0b4bfdd
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,14 @@
import org.folio.kafka.AsyncRecordHandler;
import org.folio.util.AcquisitionEventType;
import org.folio.verticle.AbstractConsumersVerticle;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class PieceEventConsumersVerticle extends AbstractConsumersVerticle {

private final AsyncRecordHandler<String, String> pieceEventsHandler;

public PieceEventConsumersVerticle(@Qualifier("pieceEventsHandler") AsyncRecordHandler<String, String> pieceEventsHandler) {
this.pieceEventsHandler = pieceEventsHandler;
}
@Autowired
private AsyncRecordHandler<String, String> pieceEventsHandler;

@Override
public List<String> getEvents() {
Expand Down

0 comments on commit 0b4bfdd

Please sign in to comment.