ch.elca.el4j.tests.services.exceptionhandler
Class B

java.lang.Object
  extended by ch.elca.el4j.tests.services.exceptionhandler.AImpl
      extended by ch.elca.el4j.tests.services.exceptionhandler.B
All Implemented Interfaces:
A, Adder

public class B
extends AImpl
implements Adder

This class is used to show the substitution and the reconfigure exception handling strategies.

Author:
Andreas Bur (ABU)
File-location:
B
Last check-in date:
2009-08-04 13:59:45 +0200 (Di, 04. Aug 2009) by swismer for revision 3873

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

s_numberOfAddCalls

public static int s_numberOfAddCalls
Number of add calls.


s_numberOfConcatCalls

public static int s_numberOfConcatCalls
Number of concatenate calls.


s_concatFails

public static boolean s_concatFails
Whether concatenate calls should fail.

Constructor Detail

B

public B()
Method Detail

reset

public static void reset()
Resets the call counters.


concat

public String concat(String a,
                     String b)
Concatenates the given three strings.

Specified by:
concat in interface A
Overrides:
concat in class AImpl
Parameters:
a - The first string.
b - The second string.
Returns:
Returns the concatenation of the given three strings.

add

public int add(int a,
               int b)
Adds the two numbers.

Specified by:
add in interface A
Specified by:
add in interface Adder
Overrides:
add in class AImpl
Parameters:
a - The first number.
b - The second number.
Returns:
Returns the sum of a and b.


Copyright © 2005-2011 ELCA. All Rights Reserved.