org.objectweb.easybeans.tests.common.interceptors.business.wrongspecification
Class TwoAroundInvokeInterceptor

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

public class TwoAroundInvokeInterceptor
extends java.lang.Object

This class has two annotations(AroundInvoke). It isn't in agreement with the JSR220 - EJB 3.0 Spec.

Author:
Eduardo Studzinski Estima de Castro, Giele Pinheiro Souza

Constructor Summary
TwoAroundInvokeInterceptor()
           
 
Method Summary
 java.lang.Object doException(javax.ejb.InvocationContext invocationContext)
          This method causes an illegal state exception.
 java.lang.Object doException2(javax.ejb.InvocationContext invocationContext)
          This method causes an illegal state exception.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TwoAroundInvokeInterceptor

public TwoAroundInvokeInterceptor()
Method Detail

doException

public java.lang.Object doException(javax.ejb.InvocationContext invocationContext)
                             throws java.lang.Exception
This method causes an illegal state exception. There are two @AroundInvoke annotations in this class.

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

doException2

public java.lang.Object doException2(javax.ejb.InvocationContext invocationContext)
                              throws java.lang.Exception
This method causes an illegal state exception. There are two AroundInvoke annotations in this class.

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