use of org.foo.mention.TwitterMentionComponent in project camel by apache.
the class TwitterMentionConnectorAutoConfiguration method configureTwitterMentionComponent.
@Lazy
@Bean(name = "twitter-mention-component")
@ConditionalOnClass(CamelContext.class)
@ConditionalOnMissingBean(org.foo.mention.TwitterMentionComponent.class)
public TwitterMentionComponent configureTwitterMentionComponent(CamelContext camelContext, TwitterMentionConnectorConfiguration configuration) throws Exception {
TwitterMentionComponent connector = new TwitterMentionComponent();
connector.setCamelContext(camelContext);
Map<String, Object> parameters = new HashMap<>();
IntrospectionSupport.getProperties(configuration, parameters, null, false);
IntrospectionSupport.setProperties(camelContext, camelContext.getTypeConverter(), connector, parameters);
connector.setComponentOptions(parameters);
return connector;
}
Aggregations