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