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

java.lang.Object
  extended by org.objectweb.easybeans.tests.common.interceptors.business.PrintOrderInterceptor<java.lang.Integer>
      extended by org.objectweb.easybeans.tests.common.interceptors.business.PrintOrder05Interceptor

public class PrintOrder05Interceptor
extends PrintOrderInterceptor<java.lang.Integer>

This interceptor is used to test the order execution of interceptors. This interceptor has a method that overrides the super method.

Author:
Eduardo Studzinski Estima de Castro, Gisele Pinheiro Souza

Field Summary
private static java.lang.Integer FALSE_ORDER
          This value is used to set the super order value, it will be used to test if the override is working.
static java.lang.Integer ORDER
          Constant to add into array.
 
Constructor Summary
PrintOrder05Interceptor()
          Constructor standard.
 
Method Summary
 java.lang.Object addOrder(javax.ejb.InvocationContext invocationContext)
          Intercepts the method and add the ORDER value in the array 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 java.lang.Integer ORDER
Constant to add into array.


FALSE_ORDER

private static final java.lang.Integer FALSE_ORDER
This value is used to set the super order value, it will be used to test if the override is working.

Constructor Detail

PrintOrder05Interceptor

public PrintOrder05Interceptor()
Constructor standard.

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 array that was get from InvocationContext. Overrides the super method.

Overrides:
addOrder in class PrintOrderInterceptor<java.lang.Integer>
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