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