classes = map.get(FacesValidator.class);
if (classes != null && !classes.isEmpty())
{
for (Class<?> clazz : classes)
{
FacesValidator val = (FacesValidator) clazz
.getAnnotation(FacesValidator.class);
if (val != null)
{
if (log.isLoggable(Level.FINEST))
{
log.finest("addValidator(" + val.value() + "," + clazz.getName()
+ ")");
}
//If there is a previous entry on Application Configuration Resources,
//the entry there takes precedence
if (dispenser.getValidatorClass(val.value()) == null)
{
application.addValidator(val.value(), clazz.getName());
if (val.isDefault())
{
application.addDefaultValidatorId(val.value());
}
}
}
}
}