|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.elca.el4j.tests.services.exceptionhandler.AImpl
public class AImpl
Sample bean class used for testing.
| Field Summary | |
|---|---|
private Adder |
m_adder
The adder to delegate calls to. |
private int |
m_retries
Number of retires. |
static boolean |
s_concatFails
Static field to set if the call should fail. |
static int |
s_numberOfConcatCalls
Static int to count number of method invocations. |
| Constructor Summary | |
|---|---|
AImpl()
|
|
| Method Summary | |
|---|---|
int |
add(int a,
int b)
Adds the two numbers. |
String |
concat(String a,
String b)
Concatenates the two Strings. |
int |
div(int a,
int b)
Divides the two integers. |
static void |
reset()
Resets the static counter. |
void |
setAdder(Adder adder)
Sets the adder to delegate calls to. |
void |
setRetries(int retries)
Sets the number of retries. |
int |
sub(int a,
int b)
Subtracts the given two numbers. |
void |
throwException()
Throws an application level exception. |
void |
throwRTException()
Throws a runtime exception. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static int s_numberOfConcatCalls
public static boolean s_concatFails
private Adder m_adder
private int m_retries
| Constructor Detail |
|---|
public AImpl()
| Method Detail |
|---|
public static void reset()
public void setRetries(int retries)
setRetries in interface Aretries - Number of retries.public void setAdder(Adder adder)
setAdder in interface Aadder - The adder to set.
public int div(int a,
int b)
div in interface Aa - Dividend.b - Divisor.
public void throwException()
throws ApplicationException
throwException in interface AApplicationException - The sample exception.public void throwRTException()
throwRTException in interface A
public String concat(String a,
String b)
concat in interface Aa - the first string.b - the second string.
public int add(int a,
int b)
add in interface Aadd in interface Addera - The first number.b - The second number.
public int sub(int a,
int b)
sub in interface Aa - The first number.b - The second number.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||