Coverage Report - org.mule.impl.NoSatisfiableMethodsException
 
Classes in this File Line Coverage Branch Coverage Complexity
NoSatisfiableMethodsException
43%
6/14
N/A
1
 
 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  0
         this(component, args, null);
 38  0
     }
 39  
 
 40  
     public NoSatisfiableMethodsException(Object component, List args, Exception cause)
 41  
     {
 42  0
         super(CoreMessages.noEntryPointFoundWithArgs(component, args), cause);
 43  0
     }
 44  
 
 45  
     public NoSatisfiableMethodsException(Object component, Class[] args)
 46  
     {
 47  2
         this(component, args, null);
 48  2
     }
 49  
 
 50  
     public NoSatisfiableMethodsException(Object component, String methodName)
 51  
     {
 52  0
         super(CoreMessages.noEntryPointFoundForNoArgsMethod(component, methodName));
 53  0
     }
 54  
 
 55  
     public NoSatisfiableMethodsException(Object component, Class[] args, Exception cause)
 56  
     {
 57  2
         super(CoreMessages.noEntryPointFoundWithArgs(component, args), cause);
 58  2
     }
 59  
 
 60  
     public NoSatisfiableMethodsException(Object component, Class returnType)
 61  
     {
 62  4
         super(CoreMessages.noMatchingMethodsOnObjectReturning(component, returnType));
 63  4
     }
 64  
 
 65  
     public NoSatisfiableMethodsException(Object component, Class returnType, Exception cause)
 66  
     {
 67  0
         super(CoreMessages.noMatchingMethodsOnObjectReturning(component, returnType), cause);
 68  0
     }
 69  
 }