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