1   /*
2    * $Id: SimpleMathsComponent.java 12319 2008-07-13 02:16:22Z rossmason $
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSource, Inc.  All rights reserved.  http://www.mulesource.com
5    *
6    * The software in this package is published under the terms of the CPAL v1.0
7    * license, a copy of which has been included with this distribution in the
8    * LICENSE.txt file.
9    */
10  
11  package org.mule.tck.services;
12  
13  import java.rmi.Remote;
14  
15  public class SimpleMathsComponent implements Remote, AdditionService
16  {
17  
18      public Integer addTen(Integer number)
19      {
20          return new Integer(number.intValue() + 10);
21      }
22  
23      public int add(int[] args)
24      {
25          int result = 0;
26          for (int i = 0; i < args.length; i++)
27          {
28              result += args[i];
29          }
30          return result;
31      }
32  }