org.apache.myfaces.extensions.validator.core.interceptor
Interface PropertyValidationInterceptor

All Superinterfaces:
ValidationParameter
All Known Implementing Classes:
FacesMessagePropertyValidationInterceptor, SingleViolationPropertyValidationInterceptor

@InvocationOrderSupport
public interface PropertyValidationInterceptor
extends ValidationParameter

Property-validation interceptors allow to intercept the validation of a property. It's possible to register a global interceptor which intercepts the validation process of all properties or a local interceptor (= a ValidationParameter which allows to intercept the validation of the constraint which hosts the interceptor as ValidationParameter.

Since:
x.x.3
Author:
Gerhard Petracek

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.
 

Method Detail

beforeValidation

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.

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

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

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-2010 The Apache Software Foundation. All Rights Reserved.