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

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

public class StaticMethodInterceptor
extends java.lang.Object

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

Author:
Eduardo Studzinski Estima de Castro, Giele Pinheiro Souza

Constructor Summary
StaticMethodInterceptor()
           
 
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

StaticMethodInterceptor

public StaticMethodInterceptor()
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 static 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