org.apache.myfaces.extensions.validator.beanval.interceptor
Class BeanValidationTagAwareValidationInterceptor

java.lang.Object
  extended by org.apache.myfaces.extensions.validator.beanval.interceptor.BeanValidationTagAwareValidationInterceptor
All Implemented Interfaces:
PropertyValidationInterceptor, ValidationParameter

public class BeanValidationTagAwareValidationInterceptor
extends Object
implements PropertyValidationInterceptor

Since:
2.x.3

Field Summary
protected  Logger logger
           
 
Constructor Summary
BeanValidationTagAwareValidationInterceptor()
           
 
Method Summary
 void afterValidation(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent, Object convertedObject, Map<String,Object> properties)
          Processed if validation was executed.
 boolean beforeValidation(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent, Object convertedObject, Map<String,Object> properties)
          Executed before the validation strategies are invoked to validate the converted value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected final Logger logger
Constructor Detail

BeanValidationTagAwareValidationInterceptor

public BeanValidationTagAwareValidationInterceptor()
Method Detail

beforeValidation

public boolean beforeValidation(javax.faces.context.FacesContext facesContext,
                                javax.faces.component.UIComponent uiComponent,
                                Object convertedObject,
                                Map<String,Object> properties)
Description copied from interface: PropertyValidationInterceptor
Executed before the validation strategies are invoked to validate the converted value.

Specified by:
beforeValidation in interface PropertyValidationInterceptor
Parameters:
facesContext - The JSF Context
uiComponent - The component which is processed
convertedObject - The converted object
properties - Additional information of interest. Contains e.g. the PropertyInformation extracted from the component.
Returns:
false if the validation process should be bypassed

afterValidation

public void afterValidation(javax.faces.context.FacesContext facesContext,
                            javax.faces.component.UIComponent uiComponent,
                            Object convertedObject,
                            Map<String,Object> properties)
Description copied from interface: PropertyValidationInterceptor
Processed if validation was executed. In contrast to a ValidationExceptionInterceptor it gets executed in any case.

Specified by:
afterValidation in interface PropertyValidationInterceptor
Parameters:
facesContext - The JSF Context
uiComponent - The component which is processed
convertedObject - The converted object
properties - Additional information of interest. Contains e.g. the PropertyInformation extracted from the component.


Copyright © 2008-2014 The Apache Software Foundation. All Rights Reserved.