1 15 package org.apache.hivemind.examples.impl; 16 17 import java.util.ArrayList ; 18 import java.util.List ; 19 20 import org.apache.hivemind.ApplicationRuntimeException; 21 import org.apache.hivemind.examples.TargetService; 22 23 29 public class TargetServiceImpl implements TargetService 30 { 31 32 public void voidMethod(String string) 33 { 34 35 } 36 37 public List buildList(String string, int count) 38 { 39 List result = new ArrayList (); 40 41 for (int i = 0; i < count; i++) 42 result.add(string); 43 44 return result; 45 } 46 47 public void exceptionThrower() 48 { 49 throw new ApplicationRuntimeException("Some application exception."); 50 } 51 52 } 53 | Popular Tags |