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

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

public class PrivateInterceptor
extends java.lang.Object

This class contains an interceptor with private modifier.

Author:
Eduardo Studzinski Estima de Castro, Gisele Pinheiro Souza

Field Summary
static java.lang.Integer ORDER
          Constant to add into list.
 
Constructor Summary
PrivateInterceptor()
           
 
Method Summary
 java.lang.Object addOrder(javax.ejb.InvocationContext invocationContext)
          Intercepts the method and add 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 list.

Constructor Detail

PrivateInterceptor

public PrivateInterceptor()
Method Detail

addOrder

public java.lang.Object addOrder(javax.ejb.InvocationContext invocationContext)
                          throws java.lang.Exception
Intercepts the method and add ORDER value in the array 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