
26
ComPonent-oriented develoPment and assemblY
e component requires the AgeCalculatorIfce02.jar file in the build path. e
AgeCalculator class implements the codabook.agecalculator02.ifce.
AgeCalculatorIfce. Dependency of the AgeCalculator02.jar component is
illustrated in Figure2.2.
Next, we modify the application component presented in Section 2.3 so that it
makes use of the interface. e resultant AgeCalculatorApp02.jar has a source
code as below:
package codabook.agecalculator02.app;
//…some code omitted for brevity
import codabook.agecalculator02.ifce.AgeCalculatorIfce;
public class AgeCalculatorApp {
private static AgeCalculatorIfce ageCalculator; ...