org.objectweb.easybeans.tests.enhancer.interceptors.business.bean
Class SingleMethodInterceptor

java.lang.Object
  extended by org.objectweb.easybeans.tests.enhancer.interceptors.business.bean.SingleMethodInterceptor

public class SingleMethodInterceptor
extends java.lang.Object

Simple interceptor class which should be launched only on single method.

Author:
Florent Benoit

Constructor Summary
SingleMethodInterceptor()
           
 
Method Summary
 java.lang.Object onlySingleMethod(javax.ejb.InvocationContext invocationContext)
          Test that the interceptor is only called on a stateless bean and on singleMethodIntercepted method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleMethodInterceptor

public SingleMethodInterceptor()
Method Detail

onlySingleMethod

public java.lang.Object onlySingleMethod(javax.ejb.InvocationContext invocationContext)
                                  throws java.lang.Exception
Test that the interceptor is only called on a stateless bean and on singleMethodIntercepted method.

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