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

java.lang.Object
  extended by org.objectweb.easybeans.tests.common.ejbs.stateless.SLSBInterceptorExceptions00
All Implemented Interfaces:
ItfExceptions

public class SLSBInterceptorExceptions00
extends java.lang.Object
implements ItfExceptions

This bean is used to test interceptors exceptions.

Author:
Eduardo Studzinski Estima de Castro, Gisele Pinheiro Souza

Field Summary
 
Fields inherited from interface org.objectweb.easybeans.tests.common.ejbs.stateless.ItfExceptions
VALUE
 
Constructor Summary
SLSBInterceptorExceptions00()
           
 
Method Summary
 java.lang.Integer getInt()
          Gets an integer.
 java.lang.Integer throwsOneException00()
          This method should throw CustomException00 exception, because the interceptor used always throws this exception.
 java.lang.Integer throwsOneException01()
          This method should throw CustomException01 exception, because the interceptor used always throws this exception.
 java.lang.Integer throwsTwoExceptions()
          This method should throw CustomException01 or CustomException02 exceptions, because the interceptor used always throws these exceptions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SLSBInterceptorExceptions00

public SLSBInterceptorExceptions00()
Method Detail

getInt

public java.lang.Integer getInt()
Gets an integer.

Specified by:
getInt in interface ItfExceptions
Returns:
value.

throwsOneException00

public java.lang.Integer throwsOneException00()
                                       throws CustomException00
This method should throw CustomException00 exception, because the interceptor used always throws this exception.

Specified by:
throwsOneException00 in interface ItfExceptions
Returns:
integer
Throws:
CustomException00 - interceptor exception

throwsOneException01

public java.lang.Integer throwsOneException01()
                                       throws CustomException01
This method should throw CustomException01 exception, because the interceptor used always throws this exception.

Specified by:
throwsOneException01 in interface ItfExceptions
Returns:
integer
Throws:
CustomException01 - interceptor exception

throwsTwoExceptions

public java.lang.Integer throwsTwoExceptions()
                                      throws CustomException00,
                                             CustomException01
This method should throw CustomException01 or CustomException02 exceptions, because the interceptor used always throws these exceptions.

Specified by:
throwsTwoExceptions in interface ItfExceptions
Returns:
integer
Throws:
CustomException01 - interceptor exception
CustomException02 - interceptor exception
CustomException00 - if a problem occurs