org.objectweb.easybeans.tests.common.ejbs.stateless
Class SLSBMethodInterceptorTest

java.lang.Object
  extended by org.objectweb.easybeans.tests.common.ejbs.stateless.SLSBMethodInterceptorTest
All Implemented Interfaces:
ItfMethodInterceptorTestRemote<java.lang.Integer>

public class SLSBMethodInterceptorTest
extends java.lang.Object
implements ItfMethodInterceptorTestRemote<java.lang.Integer>

Implements a bean that all methods apend an Integer with value 0. The difference between each method is the number of method interceptors used in each one. There are not class interceptor and default interceptor specified.

Author:
Gisele Pinheiro Souza, Eduardo Studzinski E. de Castro

Field Summary
private  java.util.List<java.lang.Integer> lstPostconstruct
          List used to test postconstruct callback.
 
Fields inherited from interface org.objectweb.easybeans.tests.common.ejbs.stateless.ItfMethodInterceptorTestRemote
ORDER
 
Constructor Summary
SLSBMethodInterceptorTest()
           
 
Method Summary
 boolean checkPostbackInterceptors()
          Verifies the list status.
 void postConstruct()
          Creates a list that will be used.
 java.util.List<java.lang.Integer> withFiveMethodInterceptors(java.util.List<java.lang.Integer> par)
          Appends an Integer with the value 0 in the par.
 java.util.List<java.lang.Integer> withFiveMethodInterceptorsInverse(java.util.List<java.lang.Integer> par)
          Appends an Integer with the value 0 in the par.
 java.util.List<java.lang.Integer> withOneMethodInterceptor(java.util.List<java.lang.Integer> par)
          Appends an Integer with the value 0 in the par.
 java.util.List<java.lang.Integer> withoutInterceptor(java.util.List<java.lang.Integer> par)
          Appends an Integer with the value 0 in the par.
 java.util.List<java.lang.Integer> withPrivateInterceptors(java.util.List<java.lang.Integer> par)
          Appends an Integer with the value 0 in the par.
 java.util.List<java.lang.Integer> withPrivateProtectedPublicInterceptors(java.util.List<java.lang.Integer> par)
          Appends an Integer with the value 0 in the par.
 java.util.List<java.lang.Integer> withProtectedInterceptors(java.util.List<java.lang.Integer> par)
          Appends an Integer with the value 0 in the par.
 java.util.List<java.lang.Integer> withTwoMethodInterceptors(java.util.List<java.lang.Integer> par)
          Appends an Integer with the value 0 in the par.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lstPostconstruct

private java.util.List<java.lang.Integer> lstPostconstruct
List used to test postconstruct callback.

Constructor Detail

SLSBMethodInterceptorTest

public SLSBMethodInterceptorTest()
Method Detail

withFiveMethodInterceptors

public java.util.List<java.lang.Integer> withFiveMethodInterceptors(java.util.List<java.lang.Integer> par)
Appends an Integer with the value 0 in the par. This method has 5 interceptors that must be call in order.

Specified by:
withFiveMethodInterceptors in interface ItfMethodInterceptorTestRemote<java.lang.Integer>
Parameters:
par - array used to append the value
Returns:
the array with modified

withFiveMethodInterceptorsInverse

public java.util.List<java.lang.Integer> withFiveMethodInterceptorsInverse(java.util.List<java.lang.Integer> par)
Appends an Integer with the value 0 in the par. This method has 5 interceptors that must be call in order. The interceptor order is inverse.

Specified by:
withFiveMethodInterceptorsInverse in interface ItfMethodInterceptorTestRemote<java.lang.Integer>
Parameters:
par - array used to append the value
Returns:
the array with modified

withOneMethodInterceptor

public java.util.List<java.lang.Integer> withOneMethodInterceptor(java.util.List<java.lang.Integer> par)
Appends an Integer with the value 0 in the par. This method has 1 interceptor that must be call in order.

Specified by:
withOneMethodInterceptor in interface ItfMethodInterceptorTestRemote<java.lang.Integer>
Parameters:
par - array used to append the value
Returns:
the array with modified

withoutInterceptor

public java.util.List<java.lang.Integer> withoutInterceptor(java.util.List<java.lang.Integer> par)
Appends an Integer with the value 0 in the par. This method has no interceptors.

Specified by:
withoutInterceptor in interface ItfMethodInterceptorTestRemote<java.lang.Integer>
Parameters:
par - array used to append the value
Returns:
the array with modified

withTwoMethodInterceptors

public java.util.List<java.lang.Integer> withTwoMethodInterceptors(java.util.List<java.lang.Integer> par)
Appends an Integer with the value 0 in the par. This method has 2 interceptors that must be call in order.

Specified by:
withTwoMethodInterceptors in interface ItfMethodInterceptorTestRemote<java.lang.Integer>
Parameters:
par - array used to append the value
Returns:
the array with modified

checkPostbackInterceptors

public boolean checkPostbackInterceptors()
Verifies the list status. The list must be not null, because the PostConstruct callback will initializate this variable.

Specified by:
checkPostbackInterceptors in interface ItfMethodInterceptorTestRemote<java.lang.Integer>
Returns:
true if the list is properly configured to use.

postConstruct

public void postConstruct()
Creates a list that will be used.


withPrivateProtectedPublicInterceptors

public java.util.List<java.lang.Integer> withPrivateProtectedPublicInterceptors(java.util.List<java.lang.Integer> par)
Appends an Integer with the value 0 in the par. This method has 8 interceptors that must be call in order.

Specified by:
withPrivateProtectedPublicInterceptors in interface ItfMethodInterceptorTestRemote<java.lang.Integer>
Parameters:
par - array used to append the value
Returns:
the array with modified

withPrivateInterceptors

public java.util.List<java.lang.Integer> withPrivateInterceptors(java.util.List<java.lang.Integer> par)
Appends an Integer with the value 0 in the par. This method has 3 interceptors with a private method that must be call in order.

Specified by:
withPrivateInterceptors in interface ItfMethodInterceptorTestRemote<java.lang.Integer>
Parameters:
par - array used to append the value
Returns:
the array with modified

withProtectedInterceptors

public java.util.List<java.lang.Integer> withProtectedInterceptors(java.util.List<java.lang.Integer> par)
Appends an Integer with the value 0 in the par. This method has 2 interceptors with a protected method that must be call in order.

Specified by:
withProtectedInterceptors in interface ItfMethodInterceptorTestRemote<java.lang.Integer>
Parameters:
par - array used to append the value
Returns:
the array with modified