1 23 24 package com.rift.coad.lib.bean.test; 25 26 31 public class MainInterface1Impl implements MainInterface1 { 32 33 public static int calledBean = 0; 35 36 37 public MainInterface1Impl() { 38 } 39 40 41 44 public void callVoid() { 45 System.out.println("Calling void"); 46 } 47 48 49 52 public void throwException() throws TestProxyException { 53 throw new TestProxyException("Failed to get result."); 54 } 55 56 59 public String getString() { 60 return "Test1"; 61 } 62 63 64 67 public int getInt(){ 68 return 1; 69 } 70 71 72 75 public TestKey getAKeyValue(){ 76 return new TestKey("1","key1"); 77 } 78 79 80 83 public SubInterface1 addSubInterface(String key){ 84 return new SubInterface1Impl(key); 85 } 86 87 88 91 public SubInterface1 getSubInterface(String key) throws Exception { 92 calledBean++; 93 return new SubInterface1Impl(key); 94 } 95 96 99 public void removeSubInterface(String key){ 100 101 } 102 } 103 | Popular Tags |