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