java.lang.Object
com.sun.faces.cdi.CdiValidator
- All Implemented Interfaces:
- StateHolder,- Validator,- EventListener
A delegate to the CDI managed validator.
- 
Constructor SummaryConstructorsConstructorDescriptionConstructor.CdiValidator(String validatorId, Validator delegate) Constructor.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanIs the validator transient.voidrestoreState(FacesContext facesContext, Object state) Restore the state.saveState(FacesContext facesContext) Save the state.voidsetTransient(boolean transientValue) Set the validator to transient.voidvalidate(FacesContext facesContext, UIComponent component, Object value) Validate.
- 
Constructor Details- 
CdiValidatorpublic CdiValidator()Constructor.
- 
CdiValidator
 
- 
- 
Method Details- 
saveStateSave the state.- Specified by:
- saveStatein interface- StateHolder
- Parameters:
- facesContext- the Faces context.
- Returns:
- the saved object.
 
- 
restoreStateRestore the state.- Specified by:
- restoreStatein interface- StateHolder
- Parameters:
- facesContext- the Faces context.
- state- the state.
 
- 
isTransientpublic boolean isTransient()Is the validator transient.- Specified by:
- isTransientin interface- StateHolder
- Returns:
- false
 
- 
setTransientpublic void setTransient(boolean transientValue) Set the validator to transient.We ignore the call as our proxy is always non-transient. - Specified by:
- setTransientin interface- StateHolder
- Parameters:
- transientValue- the transient value.
 
- 
validatepublic void validate(FacesContext facesContext, UIComponent component, Object value) throws ValidatorException Validate.- Specified by:
- validatein interface- Validator
- Parameters:
- facesContext- the Faces context.
- component- the UI component.
- value- the value.
- Throws:
- ValidatorException- when a validation error occurs.
 
 
-