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