org.pustefixframework.tutorial.calculator
Class CalculatorServiceImpl

java.lang.Object
  extended by org.pustefixframework.webservices.AbstractService
      extended by org.pustefixframework.tutorial.calculator.CalculatorServiceImpl
All Implemented Interfaces:
CalculatorService

public class CalculatorServiceImpl
extends AbstractService
implements CalculatorService

Calculator Provides the business logic

Author:
Stephan Schmidt

Constructor Summary
CalculatorServiceImpl()
           
 
Method Summary
 int add(int a, int b)
           
 int multiply(int a, int b)
           
 int subtract(int a, int b)
           
 
Methods inherited from class org.pustefixframework.webservices.AbstractService
getContext, getContextResource, getContextResource, getContextResourceManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CalculatorServiceImpl

public CalculatorServiceImpl()
Method Detail

add

public int add(int a,
               int b)
Specified by:
add in interface CalculatorService

subtract

public int subtract(int a,
                    int b)
Specified by:
subtract in interface CalculatorService

multiply

public int multiply(int a,
                    int b)
Specified by:
multiply in interface CalculatorService


Copyright © 2012 United Internet. All Rights Reserved.