Skip to content

Commit

Permalink
ensure capabilities on registration
Browse files Browse the repository at this point in the history
  • Loading branch information
hknots committed Nov 1, 2024
1 parent 3743201 commit db818e1
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@ public class RegistrationService {
private final AdapterContractProducer adapterContractProducer;
private final AdapterContractContext adapterContractContext;
private final AdapterRegistrationValidator adapterRegistrationValidator;
private final AdapterRegistrationTopicService adapterRegistrationTopicService;

public void register(AdapterContract adapterContract) {
adapterRegistrationValidator.validateCapabilities(adapterContract.getCapabilities());
adapterRegistrationTopicService.ensureCapabilityTopics(adapterContract);
adapterContractProducer.send(adapterContract, FINTLABS_NO);
adapterContractContext.add(adapterContract);
log.info("New adapter has registered: {}", adapterContract.getAdapterId());
Expand Down

0 comments on commit db818e1

Please sign in to comment.