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