Skip to content

Commit

Permalink
chore(generic-binding): add to sns plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
timonback committed Oct 13, 2023
1 parent cb45598 commit ba898dc
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
// SPDX-License-Identifier: Apache-2.0
package io.github.stavshamir.springwolf.asyncapi.sns;

import io.github.stavshamir.springwolf.asyncapi.scanners.bindings.BindingProcessorPriority;
import io.github.stavshamir.springwolf.asyncapi.scanners.channels.operationdata.SnsMessageBindingProcessor;
import io.github.stavshamir.springwolf.asyncapi.scanners.channels.operationdata.SnsOperationBindingProcessor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.annotation.Order;

/**
* spring configuration defining the scanner beans for the sns plugin
Expand All @@ -13,11 +15,13 @@
public class SpringwolfSnsScannerConfiguration {

@Bean
@Order(BindingProcessorPriority.PROTOCOL_BINDING)
public SnsMessageBindingProcessor snsMessageBindingProcessor() {
return new SnsMessageBindingProcessor();
}

@Bean
@Order(BindingProcessorPriority.PROTOCOL_BINDING)
public SnsOperationBindingProcessor snsOperationBindingProcessor() {
return new SnsOperationBindingProcessor();
}
Expand Down

0 comments on commit ba898dc

Please sign in to comment.