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