org.hibernate.beanvalidation.tck.tests.integration.cdi.factory
Class GreetingConstraintValidatorForInteger

java.lang.Object
  extended by 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

Constructor Summary
GreetingConstraintValidatorForInteger(Greeter greeter)
           
 
Method Summary
 void initialize(GreetingConstraint constraintAnnotation)
           
 boolean isValid(Integer value, javax.validation.ConstraintValidatorContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GreetingConstraintValidatorForInteger

@Inject
public GreetingConstraintValidatorForInteger(Greeter greeter)
Method Detail

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.