View Javadoc

1   /*
2    * $Id: NoSatisfiableMethodsException.java 7963 2007-08-21 08:53:15Z dirk.olmes $
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSource, Inc.  All rights reserved.  http://www.mulesource.com
5    *
6    * The software in this package is published under the terms of the CPAL v1.0
7    * license, a copy of which has been included with this distribution in the
8    * LICENSE.txt file.
9    */
10  
11  package org.mule.impl;
12  
13  import org.mule.config.i18n.CoreMessages;
14  import org.mule.umo.UMOException;
15  
16  import java.util.List;
17  
18  /**
19   * <code>NoSatisfiableMethodsException</code> is thrown by EntryPointResolvers when
20   * the component passed has no methods that meet the criteria of the configured
21   * EntryPointResolver.
22   * 
23   * @see org.mule.umo.model.UMOEntryPointResolver
24   */
25  public class NoSatisfiableMethodsException extends UMOException
26  {
27      /**
28       * Serial version
29       */
30      private static final long serialVersionUID = -4703387041767867189L;
31  
32      /**
33       * @param component
34       */
35      public NoSatisfiableMethodsException(Object component, List args)
36      {
37          this(component, args, null);
38      }
39  
40      public NoSatisfiableMethodsException(Object component, List args, Exception cause)
41      {
42          super(CoreMessages.noEntryPointFoundWithArgs(component, args), cause);
43      }
44  
45      public NoSatisfiableMethodsException(Object component, Class[] args)
46      {
47          this(component, args, null);
48      }
49  
50      public NoSatisfiableMethodsException(Object component, String methodName)
51      {
52          super(CoreMessages.noEntryPointFoundForNoArgsMethod(component, methodName));
53      }
54  
55      public NoSatisfiableMethodsException(Object component, Class[] args, Exception cause)
56      {
57          super(CoreMessages.noEntryPointFoundWithArgs(component, args), cause);
58      }
59  
60      public NoSatisfiableMethodsException(Object component, Class returnType)
61      {
62          super(CoreMessages.noMatchingMethodsOnObjectReturning(component, returnType));
63      }
64  
65      public NoSatisfiableMethodsException(Object component, Class returnType, Exception cause)
66      {
67          super(CoreMessages.noMatchingMethodsOnObjectReturning(component, returnType), cause);
68      }
69  }