Save This Page
Home » jboss-5.0.0.CR1-src » org » jboss » ejb » plugins » [javadoc | source]
org.jboss.ejb.plugins
public class: CallValidationInterceptor [javadoc | source]
java.lang.Object
   org.jboss.ejb.plugins.AbstractInterceptor
      org.jboss.ejb.plugins.CallValidationInterceptor

All Implemented Interfaces:
    Interceptor

This Interceptor validates the incomming arguments and the return value of the call. Here is the place where you want to make sure that local object don't pass through the remote interface.
Fields inherited from org.jboss.ejb.plugins.AbstractInterceptor:
nextInterceptor,  log,  container
Method from org.jboss.ejb.plugins.CallValidationInterceptor Summary:
invoke,   invokeHome,   validateArguments,   validateReturnValue
Methods from org.jboss.ejb.plugins.AbstractInterceptor:
create,   destroy,   getContainer,   getNext,   invoke,   invokeHome,   isAppException,   setContainer,   setNext,   start,   stop
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.ejb.plugins.CallValidationInterceptor Detail:
 public Object invoke(Invocation mi) throws Exception 
 public Object invokeHome(Invocation mi) throws Exception 
 protected  void validateArguments(Invocation mi) 
    Do some validation of the incoming parameters
 protected Object validateReturnValue(Invocation mi,
    Object retValue) 
    Do some validation of the return value