org.objectweb.easybeans.tests.enhancer.interceptors.business.bean
Interface StatelessLocalItf

All Known Subinterfaces:
StatelessLocalBisItf, StatelessRemoteItf
All Known Implementing Classes:
StatelessBean

public interface StatelessLocalItf

Local interface.

Author:
Florent Benoit

Method Summary
 int addInt(int i, int j)
          Adds two int.
 void excludedInterceptorsMethod()
          Test that no interceptors are called on this method.
 boolean getBoolean(boolean b)
          Test method on boolean.
 boolean[] getBooleans(boolean[] booleans)
          Test method on boolean.
 byte getByte(byte i)
          Test method on byte.
 byte[] getBytes(byte[] bytes)
          Test method on byte.
 char getChar(char c)
          Test method on char.
 char[] getChars(char[] chars)
          Test method on char.
 double getDouble(double d)
          Test method on double.
 double[] getDoubles(double[] doubles)
          Test method on double.
 float getFloat(float f)
          Test method on float.
 float[] getFloats(float[] floats)
          Test method on float.
 int getInt(int i)
          Test method on int.
 int[] getInts(int[] ints)
          Test method on int.
 long getLong(long l)
          Test method on long.
 long[] getLongs(long[] longs)
          Test method on long.
 java.lang.Object[] getPrimitive(boolean flag, byte b, char c, double d, float f, int i, long l, java.lang.Object o)
          Test method on primitive.
 short getShort(short s)
          Test method on short.
 short[] getShorts(short[] shorts)
          Test method on short.
 void singleMethodIntercepted()
          Test interceptor which is applied only on a single method.
 void someCustomizedExceptions()
          Throws a user defined exception.
 void someCustomizedExceptions2(int value)
          Throws user defined exceptions.
 void someCustomizedExceptions3(int value)
          Throws user defined exceptions.
 void throwExceptionByInterceptor()
          Method do nothing but the interceptor will throw an exception.
 int valueDoubledByInterceptor(int i)
          Change the return value by the interceptor.
 

Method Detail

getBoolean

boolean getBoolean(boolean b)
Test method on boolean.

Parameters:
b - value to return
Returns:
given value

getBooleans

boolean[] getBooleans(boolean[] booleans)
Test method on boolean.

Parameters:
booleans - array to return
Returns:
given value

getByte

byte getByte(byte i)
Test method on byte.

Parameters:
i - value to return
Returns:
given value

getBytes

byte[] getBytes(byte[] bytes)
Test method on byte.

Parameters:
bytes - array to return
Returns:
given value

getChar

char getChar(char c)
Test method on char.

Parameters:
c - value to return
Returns:
given value

getChars

char[] getChars(char[] chars)
Test method on char.

Parameters:
chars - array to return
Returns:
given value

getDouble

double getDouble(double d)
Test method on double.

Parameters:
d - value to return
Returns:
given value

getDoubles

double[] getDoubles(double[] doubles)
Test method on double.

Parameters:
doubles - array to return
Returns:
given value

getFloat

float getFloat(float f)
Test method on float.

Parameters:
f - value to return
Returns:
given value

getFloats

float[] getFloats(float[] floats)
Test method on float.

Parameters:
floats - array to return
Returns:
given value

getInt

int getInt(int i)
Test method on int.

Parameters:
i - value to return
Returns:
given value

addInt

int addInt(int i,
           int j)
Adds two int.

Parameters:
i - first value
j - second value
Returns:
given value

getInts

int[] getInts(int[] ints)
Test method on int.

Parameters:
ints - array to return
Returns:
given value

getLong

long getLong(long l)
Test method on long.

Parameters:
l - value to return
Returns:
given value

getLongs

long[] getLongs(long[] longs)
Test method on long.

Parameters:
longs - array to return
Returns:
given value

getShort

short getShort(short s)
Test method on short.

Parameters:
s - value to return
Returns:
given value

getShorts

short[] getShorts(short[] shorts)
Test method on short.

Parameters:
shorts - array to return
Returns:
given value

getPrimitive

java.lang.Object[] getPrimitive(boolean flag,
                                byte b,
                                char c,
                                double d,
                                float f,
                                int i,
                                long l,
                                java.lang.Object o)
Test method on primitive.

Parameters:
flag - value to return
b - value to return
c - value to return
d - value to return
f - value to return
i - value to return
l - value to return
o - value to return
Returns:
given values

someCustomizedExceptions

void someCustomizedExceptions()
                              throws TestException
Throws a user defined exception.

Throws:
TestException - an user defined exception

someCustomizedExceptions2

void someCustomizedExceptions2(int value)
                               throws TestException,
                                      TestException2
Throws user defined exceptions.

Parameters:
value - depending of the value, throw different exceptions.
Throws:
TestException - an user defined exception
TestException2 - another user defined exception

someCustomizedExceptions3

void someCustomizedExceptions3(int value)
                               throws java.lang.Exception
Throws user defined exceptions.

Parameters:
value - depending of the value, throw different exceptions
Throws:
java.lang.Exception - another exception

throwExceptionByInterceptor

void throwExceptionByInterceptor()
Method do nothing but the interceptor will throw an exception.


valueDoubledByInterceptor

int valueDoubledByInterceptor(int i)
Change the return value by the interceptor.

Parameters:
i - value to be add twice.
Returns:
a value (mult * 2) of the given value

singleMethodIntercepted

void singleMethodIntercepted()
Test interceptor which is applied only on a single method.


excludedInterceptorsMethod

void excludedInterceptorsMethod()
Test that no interceptors are called on this method.