Coverage Report - org.mule.module.ibeans.i18n.IBeansMessages
 
Classes in this File Line Coverage Branch Coverage Complexity
IBeansMessages
0%
0/9
N/A
1
 
 1  
 /*
 2  
  * $Id: IBeansMessages.java 19191 2010-08-25 21:05:23Z tcarlson $
 3  
  * --------------------------------------------------------------------------------------
 4  
  * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.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.module.ibeans.i18n;
 12  
 
 13  
 import org.mule.config.i18n.Message;
 14  
 import org.mule.config.i18n.MessageFactory;
 15  
 
 16  
 import java.lang.reflect.Method;
 17  
 import java.util.Arrays;
 18  
 
 19  0
 public class IBeansMessages extends MessageFactory
 20  
 {
 21  0
     private static final IBeansMessages FACTORY = new IBeansMessages();
 22  
 
 23  0
     private static final String BUNDLE_PATH = getBundlePath("ibeans");
 24  
 
 25  
     public static Message ibeanNotRegistered(String ibeanName)
 26  
     {
 27  0
         return FACTORY.createMessage(BUNDLE_PATH, 1, ibeanName);
 28  
     }
 29  
 
 30  
     public static Message ibeanMethodFoundButNotValid(String ibeanName, String methodName)
 31  
     {
 32  0
         return FACTORY.createMessage(BUNDLE_PATH, 2, ibeanName, methodName);
 33  
     }
 34  
 
 35  
     public static Message ibeanMethodNotFound(String ibeanName, String methodName)
 36  
     {
 37  0
         return FACTORY.createMessage(BUNDLE_PATH, 3, ibeanName, methodName);
 38  
     }
 39  
 
 40  
     public static Message ibeanMethodNotFound(String ibeanName, String methodName, Class[] parameters)
 41  
     {
 42  0
         return FACTORY.createMessage(BUNDLE_PATH, 4, methodName, Arrays.toString(parameters), ibeanName);
 43  
     }
 44  
 
 45  
     public static Message ibeanMethodParametersDoNotMatch(String iBeanName, String methodName, Class[] eventParams, Class[] methodParams)
 46  
     {
 47  0
         return FACTORY.createMessage(BUNDLE_PATH, 5, methodName, Arrays.toString(eventParams), methodName, iBeanName, Arrays.toString(methodParams));
 48  
     }
 49  
 
 50  
     public static Message illegalCallMethod(Method method)
 51  
     {
 52  0
         return FACTORY.createMessage(BUNDLE_PATH, 6, method);
 53  
     }
 54  
 }