org.apache.bval.jsr303
Class ConstraintCached

java.lang.Object
  extended by org.apache.bval.jsr303.ConstraintCached

public class ConstraintCached
extends Object

Description: hold the relationship annotation->validatedBy[] ConstraintValidator classes that are already parsed in a cache.


Constructor Summary
ConstraintCached()
           
 
Method Summary
 boolean containsConstraintValidator(Class<? extends Annotation> annotationClass)
          Learn whether we have cached the validator classes for the requested constraint annotation.
<A extends Annotation>
Class<? extends ConstraintValidator<A,?>>[]
getConstraintValidators(Class<A> annotationClass)
          Get the cached validator classes for the requested constraint annotation.
<A extends Annotation>
void
putConstraintValidator(Class<A> annotationClass, Class<? extends ConstraintValidator<A,?>>[] definitionClasses)
          Record the set of validator classes for a given constraint annotation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstraintCached

public ConstraintCached()
Method Detail

putConstraintValidator

public <A extends Annotation> void putConstraintValidator(Class<A> annotationClass,
                                                          Class<? extends ConstraintValidator<A,?>>[] definitionClasses)
Record the set of validator classes for a given constraint annotation.

Parameters:
annotationClass -
definitionClasses -

containsConstraintValidator

public boolean containsConstraintValidator(Class<? extends Annotation> annotationClass)
Learn whether we have cached the validator classes for the requested constraint annotation.

Parameters:
annotationClass - to look up
Returns:
boolean

getConstraintValidators

public <A extends Annotation> Class<? extends ConstraintValidator<A,?>>[] getConstraintValidators(Class<A> annotationClass)
Get the cached validator classes for the requested constraint annotation.

Parameters:
annotationClass - to look up
Returns:
array of ConstraintValidator implementation types


Copyright © 2010-2012 Apache Software Foundation. All Rights Reserved.