Search in sources :

Example 1 with AsteriskComponent

use of org.apache.camel.component.asterisk.AsteriskComponent in project camel by apache.

the class AsteriskComponentAutoConfiguration method configureAsteriskComponent.

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

AsteriskComponent (org.apache.camel.component.asterisk.AsteriskComponent)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