{
application.addComponent(comp.value(), clazz.getName());
}
}
FacesConverter conv = (FacesConverter) clazz
.getAnnotation(FacesConverter.class);
if (conv != null)
{
if (log.isLoggable(Level.FINEST))
{
log.finest("addConverter(" + conv.value() + ","
+ clazz.getName() + ")");
}
//If there is a previous entry on Application Configuration Resources,
//the entry there takes precedence
if (!Object.class.equals(conv.forClass()))
{
application.addConverter(conv.forClass(), clazz.getName());
}
if (dispenser.getConverterClassById(conv.value()) == null &&
conv.value() != null && !"".equals(conv.value()))
{
application.addConverter(conv.value(), clazz.getName());
}
}
FacesValidator val = (FacesValidator) clazz
.getAnnotation(FacesValidator.class);