站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss Seam 1.0.0 API 英文版文档

ValidationInterceptor (JBoss Seam API Documentation) - JBoss Seam 1.0.0 API 英文版文档


org.jboss.seam.interceptors
Class ValidationInterceptor

java.lang.Object
  extended by org.jboss.seam.interceptors.ValidationInterceptor

@Within(value={BijectionInterceptor.class,OutcomeInterceptor.class})
public class ValidationInterceptor
extends Object

Validate the method receiver using Hibernate validator before invoking the method. If a validation failure occurs, put information about the failure in the request context and return a different outcome, without invoking the method.

Author:
Gavin King

Field Summary
protected  Component component
           
 
Constructor Summary
ValidationInterceptor()
           
 
Method Summary
 void setComponent(Component component)
           
 Object validateTargetComponent(javax.interceptor.InvocationContext invocation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

component

protected Component component
Constructor Detail

ValidationInterceptor

public ValidationInterceptor()
Method Detail

validateTargetComponent

public Object validateTargetComponent(javax.interceptor.InvocationContext invocation)
                               throws Exception
Throws:
Exception

setComponent

public void setComponent(Component component)