org.hibernate.beanvalidation.tck.tests.integration.cdi.factory
Class GreetingConstraintValidatorForInteger
java.lang.Object
org.hibernate.beanvalidation.tck.tests.integration.cdi.factory.GreetingConstraintValidatorForInteger
- All Implemented Interfaces:
- javax.validation.ConstraintValidator<GreetingConstraint,Integer>
public class GreetingConstraintValidatorForInteger
- extends Object
- implements javax.validation.ConstraintValidator<GreetingConstraint,Integer>
A validator which makes use of constructor injection.
- Author:
- Gunnar Morling
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GreetingConstraintValidatorForInteger
@Inject
public GreetingConstraintValidatorForInteger(Greeter greeter)
initialize
public void initialize(GreetingConstraint constraintAnnotation)
- Specified by:
initialize in interface javax.validation.ConstraintValidator<GreetingConstraint,Integer>
isValid
public boolean isValid(Integer value,
javax.validation.ConstraintValidatorContext context)
- Specified by:
isValid in interface javax.validation.ConstraintValidator<GreetingConstraint,Integer>
Copyright © 2008-2013. All Rights Reserved.