use of org.apache.camel.component.aws.sns.SnsComponent in project camel by apache.
the class SnsComponentAutoConfiguration method configureSnsComponent.
@Lazy
@Bean(name = "aws-sns-component")
@ConditionalOnClass(CamelContext.class)
@ConditionalOnMissingBean(SnsComponent.class)
public SnsComponent configureSnsComponent(CamelContext camelContext) throws Exception {
SnsComponent component = new SnsComponent();
component.setCamelContext(camelContext);
return component;
}
Also used :
SnsComponent(org.apache.camel.component.aws.sns.SnsComponent)
Lazy(org.springframework.context.annotation.Lazy)
ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean)
ConditionalOnClass(org.springframework.boot.autoconfigure.condition.ConditionalOnClass)
ConditionalOnBean(org.springframework.boot.autoconfigure.condition.ConditionalOnBean)
ConditionalOnMissingBean(org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean)
Bean(org.springframework.context.annotation.Bean)