|
||||||||||
| 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
ch.elca.el4j.tests.services.exceptionhandler.B
public class B
This class is used to show the substitution and the reconfigure exception handling strategies.
| Field Summary | |
|---|---|
static boolean |
s_concatFails
Whether concatenate calls should fail. |
static int |
s_numberOfAddCalls
Number of add calls. |
static int |
s_numberOfConcatCalls
Number of concatenate calls. |
| Constructor Summary | |
|---|---|
B()
|
|
| Method Summary | |
|---|---|
int |
add(int a,
int b)
Adds the two numbers. |
String |
concat(String a,
String b)
Concatenates the given three strings. |
static void |
reset()
Resets the call counters. |
| Methods inherited from class ch.elca.el4j.tests.services.exceptionhandler.AImpl |
|---|
div, setAdder, setRetries, sub, throwException, throwRTException |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static int s_numberOfAddCalls
public static int s_numberOfConcatCalls
public static boolean s_concatFails
| Constructor Detail |
|---|
public B()
| Method Detail |
|---|
public static void reset()
public String concat(String a,
String b)
concat in interface Aconcat in class AImpla - The first string.b - The second string.
public int add(int a,
int b)
add in interface Aadd in interface Adderadd in class AImpla - The first number.b - The second number.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||