use of org.apache.camel.component.aws.cw.CwComponent in project camel by apache.
the class CwComponentAutoConfiguration method configureCwComponent.
@Lazy
@Bean(name = "aws-cw-component")
@ConditionalOnClass(CamelContext.class)
@ConditionalOnMissingBean(CwComponent.class)
public CwComponent configureCwComponent(CamelContext camelContext) throws Exception {
CwComponent component = new CwComponent();
component.setCamelContext(camelContext);
return component;
}
Also used :
CwComponent(org.apache.camel.component.aws.cw.CwComponent)
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)