org.apache.camel.component.bean.validator
Class BeanValidator

java.lang.Object
  extended by org.apache.camel.component.bean.validator.BeanValidator
All Implemented Interfaces:
Processor

public class BeanValidator
extends Object
implements Processor

Bean validator that uses the JSR 303 reference implementation (Hibernate Validator).

Version:

Constructor Summary
BeanValidator()
           
 
Method Summary
 javax.validation.ConstraintValidatorFactory getConstraintValidatorFactory()
           
 Class getGroup()
           
 javax.validation.MessageInterpolator getMessageInterpolator()
           
 javax.validation.TraversableResolver getTraversableResolver()
           
 javax.validation.Validator getValidator()
           
 javax.validation.ValidatorFactory getValidatorFactory()
           
 void process(Exchange exchange)
          Processes the message exchange
 void setGroup(Class group)
           
 void setValidatorFactory(javax.validation.ValidatorFactory validatorFactory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanValidator

public BeanValidator()
Method Detail

process

public void process(Exchange exchange)
             throws Exception
Description copied from interface: Processor
Processes the message exchange

Specified by:
process in interface Processor
Parameters:
exchange - the message exchange
Throws:
Exception - if an internal processing error has occurred.

getValidatorFactory

public javax.validation.ValidatorFactory getValidatorFactory()

setValidatorFactory

public void setValidatorFactory(javax.validation.ValidatorFactory validatorFactory)

getValidator

public javax.validation.Validator getValidator()

getGroup

public Class getGroup()

setGroup

public void setGroup(Class group)

getMessageInterpolator

public javax.validation.MessageInterpolator getMessageInterpolator()

getTraversableResolver

public javax.validation.TraversableResolver getTraversableResolver()

getConstraintValidatorFactory

public javax.validation.ConstraintValidatorFactory getConstraintValidatorFactory()


Apache CAMEL