org.objectweb.easybeans.tests.common.interceptors.business
Class CausesException01Interceptor

java.lang.Object
  extended by org.objectweb.easybeans.tests.common.interceptors.business.CausesException01Interceptor

public class CausesException01Interceptor
extends java.lang.Object

This interceptor throws Custom01Exception.

Author:
Eduardo Studzinski Estima de Castro, Gisele Pinheiro Souza

Constructor Summary
CausesException01Interceptor()
           
 
Method Summary
 java.lang.Object throwException(javax.ejb.InvocationContext invocationContext)
          Intercepts the method and throws an exception.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CausesException01Interceptor

public CausesException01Interceptor()
Method Detail

throwException

public java.lang.Object throwException(javax.ejb.InvocationContext invocationContext)
                                throws java.lang.Exception
Intercepts the method and throws an exception.

Parameters:
invocationContext - contains attributes of invocation..
Returns:
method's invocation result
Throws:
java.lang.Exception - if invocation fails