@Metadata(label="validation") public class CustomValidatorDefinition extends ValidatorDefinition
Validator needs to be specified.
ValidatorDefinition
Validator| Constructor and Description |
|---|
CustomValidatorDefinition() |
| Modifier and Type | Method and Description |
|---|---|
protected Validator |
doCreateValidator(CamelContext context) |
String |
getClassName() |
String |
getRef() |
void |
setClassName(String className)
Set a class name of the
Validator |
void |
setRef(String ref)
Set a bean reference of the
Validator |
createValidator, getType, setType, setTypepublic CustomValidatorDefinition()
protected Validator doCreateValidator(CamelContext context) throws Exception
doCreateValidator in class ValidatorDefinitionExceptionpublic void setRef(String ref)
Validatorref - the bean reference of the Transformerpublic String getClassName()
public void setClassName(String className)
ValidatorclassName - the class name of the ValidatorApache Camel