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

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

public class FinalMethodInterceptor
extends java.lang.Object

This class has the interceptor method with final modifier. It isn't in agreement with the JSR220 - EJB 3.0 Spec.

Author:
Eduardo Studzinski Estima de Castro, Giele Pinheiro Souza

Constructor Summary
FinalMethodInterceptor()
           
 
Method Summary
 java.lang.Object doNothing(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

FinalMethodInterceptor

public FinalMethodInterceptor()
Method Detail

doNothing

public final java.lang.Object doNothing(javax.ejb.InvocationContext invocationContext)
                                 throws java.lang.Exception
This method causes an illegal state exception. There are a final method modifier that isn't allowed by the specification.

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