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