org.objectweb.easybeans.tests.common.interceptors.business
Class PrintOrder06Interceptor

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

public class PrintOrder06Interceptor
extends java.lang.Object

This interceptor without inheritance is used to test the order execution of interceptors.

Author:
Eduardo Studzinski Estima de Castro, Gisele Pinheiro Souza

Field Summary
static int ORDER
          Constant to add into array.
 
Constructor Summary
PrintOrder06Interceptor()
           
 
Method Summary
 java.lang.Object addOrder(javax.ejb.InvocationContext invocationContext)
          Intercepts the method and add the ORDER value in the list that was get from InvocationContext.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ORDER

public static final int ORDER
Constant to add into array.

Constructor Detail

PrintOrder06Interceptor

public PrintOrder06Interceptor()
Method Detail

addOrder

public java.lang.Object addOrder(javax.ejb.InvocationContext invocationContext)
                          throws java.lang.Exception
Intercepts the method and add the ORDER value in the list that was get from InvocationContext.

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