Package org.apache.bval.jsr.job
Class ValidationJobFactory
- java.lang.Object
-
- org.apache.bval.jsr.job.ValidationJobFactory
-
public class ValidationJobFactory extends Object
CreatesValidationJob
instances.
-
-
Constructor Summary
Constructors Constructor Description ValidationJobFactory(ApacheFactoryContext validatorContext)
Create a newValidationJobFactory
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> ValidateBean<T>
validateBean(T bean, Class<?>... groups)
<T> ValidateParameters.ForConstructor<T>
validateConstructorParameters(Constructor<? extends T> constructor, Object[] parameterValues, Class<?>... groups)
<T> ValidateReturnValue.ForConstructor<T>
validateConstructorReturnValue(Constructor<? extends T> constructor, T createdObject, Class<?>... groups)
<T> ValidateParameters.ForMethod<T>
validateParameters(T object, Method method, Object[] parameterValues, Class<?>... groups)
<T> ValidateProperty<T>
validateProperty(T bean, String property, Class<?>... groups)
<T> ValidateReturnValue.ForMethod<T>
validateReturnValue(T object, Method method, Object returnValue, Class<?>... groups)
<T> ValidateProperty<T>
validateValue(Class<T> rootBeanClass, String property, Object value, Class<?>... groups)
-
-
-
Constructor Detail
-
ValidationJobFactory
public ValidationJobFactory(ApacheFactoryContext validatorContext)
Create a newValidationJobFactory
.- Parameters:
validatorContext
-
-
-
Method Detail
-
validateBean
public <T> ValidateBean<T> validateBean(T bean, Class<?>... groups)
- See Also:
Validator.validate(Object, Class...)
-
validateProperty
public <T> ValidateProperty<T> validateProperty(T bean, String property, Class<?>... groups)
- See Also:
Validator.validateProperty(Object, String, Class...)
-
validateValue
public <T> ValidateProperty<T> validateValue(Class<T> rootBeanClass, String property, Object value, Class<?>... groups)
- See Also:
Validator.validateValue(Class, String, Object, Class...)
-
validateParameters
public <T> ValidateParameters.ForMethod<T> validateParameters(T object, Method method, Object[] parameterValues, Class<?>... groups)
- See Also:
ExecutableValidator.validateParameters(Object, Method, Object[], Class...)
-
validateReturnValue
public <T> ValidateReturnValue.ForMethod<T> validateReturnValue(T object, Method method, Object returnValue, Class<?>... groups)
- See Also:
ExecutableValidator.validateReturnValue(Object, Method, Object, Class...)
-
validateConstructorParameters
public <T> ValidateParameters.ForConstructor<T> validateConstructorParameters(Constructor<? extends T> constructor, Object[] parameterValues, Class<?>... groups)
- See Also:
ExecutableValidator.validateConstructorParameters(Constructor, Object[], Class...)
-
validateConstructorReturnValue
public <T> ValidateReturnValue.ForConstructor<T> validateConstructorReturnValue(Constructor<? extends T> constructor, T createdObject, Class<?>... groups)
- See Also:
ExecutableValidator.validateConstructorReturnValue(Constructor, Object, Class...)
-
-