@Override public final Validator createValidator(final String validatorId) throws FacesException { checkNull(validatorId, "validatorId"); checkEmpty(validatorId, "validatorId"); Class<?> validatorClass = getObjectFromClassMap(validatorId, _validatorClassMap); if (validatorClass == null) { String message = "Unknown validator id '" + validatorId + "'."; log.severe(message); throw new FacesException(message); } try { Validator validator = (Validator) validatorClass.newInstance(); _handleAttachedResourceDependencyAnnotations(FacesContext.getCurrentInstance(), validator); return validator; } catch (Exception e) { log.log(Level.SEVERE, "Could not instantiate validator " + validatorClass, e); throw new FacesException("Could not instantiate validator: " + validatorClass, e); } }
@Override public final Validator createValidator(final String validatorId) throws FacesException { checkNull(validatorId, "validatorId"); checkEmpty(validatorId, "validatorId"); Class<?> validatorClass = getObjectFromClassMap(validatorId, _validatorClassMap); if (validatorClass == null) { String message = "Unknown validator id '" + validatorId + "'."; log.severe(message); throw new FacesException(message); } try { Validator validator = (Validator) validatorClass.newInstance(); _handleAttachedResourceDependencyAnnotations(FacesContext.getCurrentInstance(), validator); return validator; } catch (Exception e) { log.log(Level.SEVERE, "Could not instantiate validator " + validatorClass, e); throw new FacesException("Could not instantiate validator: " + validatorClass, e); } }
_handleAttachedResourceDependencyAnnotations(FacesContext.getCurrentInstance(), ((FacesWrapper<Validator>)validator).getWrapped()); _handleAttachedResourceDependencyAnnotations(FacesContext.getCurrentInstance(), validator);
_handleAttachedResourceDependencyAnnotations(FacesContext.getCurrentInstance(), behavior); _handleAttachedResourceDependencyAnnotations(FacesContext.getCurrentInstance(), cbr);
_handleAttachedResourceDependencyAnnotations(FacesContext.getCurrentInstance(), behavior); _handleAttachedResourceDependencyAnnotations(FacesContext.getCurrentInstance(), cbr);
_handleAttachedResourceDependencyAnnotations(facesContext, innerBehavior); _handleAttachedResourceDependencyAnnotations(facesContext, cbr); _handleAttachedResourceDependencyAnnotations(facesContext, behavior); _handleAttachedResourceDependencyAnnotations(facesContext, cbr);
_handleAttachedResourceDependencyAnnotations(FacesContext.getCurrentInstance(), ((FacesWrapper<Converter>)converter).getWrapped()); _handleAttachedResourceDependencyAnnotations(FacesContext.getCurrentInstance(), converter);
_handleAttachedResourceDependencyAnnotations(FacesContext.getCurrentInstance(), converter);
_handleAttachedResourceDependencyAnnotations(FacesContext.getCurrentInstance(), converter);