View Javadoc
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.module.ibeans.annotations;
8   
9   import java.net.UnknownHostException;
10  
11  import org.ibeans.annotation.Call;
12  import org.ibeans.annotation.param.UriParam;
13  import org.ibeans.api.ExceptionListenerAware;
14  
15  /**
16   * A test bean that uses an exception listener rather than declaring exceptions on all the method calls
17   */
18  public interface TestExceptionIBean extends ExceptionListenerAware
19  {
20      @Call(uri = "http://doesnotexist.bom?param={foo}")
21      public String doSomething(@UriParam("foo") String foo);
22  
23      @Call(uri = "http://doesnotexist.bom")
24      public String doSomethingElse() throws UnknownHostException;
25  }