org.objectweb.easybeans.tests.common.ejbs.stateless.wrongspecification
Class SLSBStaticInternalInterceptor

java.lang.Object
  extended by org.objectweb.easybeans.tests.common.ejbs.stateless.wrongspecification.SLSBStaticInternalInterceptor
All Implemented Interfaces:
ItfOneMethodBeanRemote

public class SLSBStaticInternalInterceptor
extends java.lang.Object
implements ItfOneMethodBeanRemote

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

Author:
Eduardo Studzinski Estima de Castro, Gisele Pinheiro Souza

Constructor Summary
SLSBStaticInternalInterceptor()
           
 
Method Summary
static java.lang.Object doNothing(javax.ejb.InvocationContext invocationContext)
          Intercepts the method and do nothing.
 java.lang.Object doOne()
          This method has an inteceptor with void return type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SLSBStaticInternalInterceptor

public SLSBStaticInternalInterceptor()
Method Detail

doOne

public java.lang.Object doOne()
This method has an inteceptor with void return type.

Specified by:
doOne in interface ItfOneMethodBeanRemote
Returns:
null

doNothing

public static java.lang.Object doNothing(javax.ejb.InvocationContext invocationContext)
                                  throws java.lang.Exception
Intercepts the method and do nothing.

Parameters:
invocationContext - contains attributes of invocation, the first parameter of the intercepted method must be a list.
Returns:
method's invocation result
Throws:
java.lang.Exception - if invocation fails