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