1 17 18 package org.sape.carbon.core.component.proxy.test; 19 20 21 22 31 public class TestComponentImpl implements TestComponent { 32 33 36 public TestComponentImpl() { 37 } 38 39 private int x = 0; 40 public void doNothing() { 41 x++; 42 } 43 44 48 public void doSomeWork(String callBackId){ 49 ExternalComponentProxyTest.calleeConfirm(callBackId); 50 } 51 52 55 public void intentionalException() throws Exception { 56 throw new Exception ("This is an intentional Exception"); 57 } 58 59 63 public TestReturnType returnTestReturnType() { 64 return new TestReturnType(); 65 } 66 67 70 public boolean reentrantMethod() { 71 try{ 72 Thread.sleep(1000); 73 } 74 catch(InterruptedException IE) { 75 } 77 finally{ 78 return true; 79 } 80 } 81 82 } 83 | Popular Tags |