use of org.apache.camel.impl.validator.ProcessorValidator in project camel by apache.
the class EndpointValidatorDefinition method doCreateValidator.
@Override
protected Validator doCreateValidator(CamelContext context) throws Exception {
Endpoint endpoint = uri != null ? context.getEndpoint(uri) : context.getRegistry().lookupByNameAndType(ref, Endpoint.class);
SendProcessor processor = new SendProcessor(endpoint, ExchangePattern.InOut);
return new ProcessorValidator(context).setProcessor(processor).setType(getType());
}
use of org.apache.camel.impl.validator.ProcessorValidator in project camel by apache.
the class PredicateValidatorDefinition method doCreateValidator.
@Override
protected Validator doCreateValidator(CamelContext context) throws Exception {
Predicate pred = getExpression().createPredicate(context);
PredicateValidatingProcessor processor = new PredicateValidatingProcessor(pred);
return new ProcessorValidator(context).setProcessor(processor).setType(getType());
}
Aggregations