Search in sources :

Example 1 with DropboxComponent

use of org.apache.camel.component.dropbox.DropboxComponent in project camel by apache.

the class DropboxComponentAutoConfiguration method configureDropboxComponent.

@Lazy
@Bean(name = "dropbox-component")
@ConditionalOnClass(CamelContext.class)
@ConditionalOnMissingBean(DropboxComponent.class)
public DropboxComponent configureDropboxComponent(CamelContext camelContext) throws Exception {
    DropboxComponent component = new DropboxComponent();
    component.setCamelContext(camelContext);
    return component;
}
Also used : DropboxComponent(org.apache.camel.component.dropbox.DropboxComponent) 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)

Aggregations

DropboxComponent (org.apache.camel.component.dropbox.DropboxComponent)1 ConditionalOnBean (org.springframework.boot.autoconfigure.condition.ConditionalOnBean)1 ConditionalOnClass (org.springframework.boot.autoconfigure.condition.ConditionalOnClass)1 ConditionalOnMissingBean (org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean)1 Bean (org.springframework.context.annotation.Bean)1 Lazy (org.springframework.context.annotation.Lazy)1