use of org.apache.camel.component.weather.WeatherComponent in project camel by apache.
the class WeatherComponentAutoConfiguration method configureWeatherComponent.
@Lazy
@Bean(name = "weather-component")
@ConditionalOnClass(CamelContext.class)
@ConditionalOnMissingBean(WeatherComponent.class)
public WeatherComponent configureWeatherComponent(CamelContext camelContext) throws Exception {
WeatherComponent component = new WeatherComponent();
component.setCamelContext(camelContext);
return component;
}
Aggregations