Coverage Report - org.mule.config.i18n.CoreMessages
 
Classes in this File Line Coverage Branch Coverage Complexity
CoreMessages
15%
26/172
25%
1/4
1.006
 
 1  
 /*
 2  
  * $Id: CoreMessages.java 11728 2008-05-13 07:31:11Z 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.config.i18n;
 12  
 
 13  
 import org.mule.config.MuleManifest;
 14  
 import org.mule.umo.UMOComponent;
 15  
 import org.mule.umo.endpoint.UMOEndpoint;
 16  
 import org.mule.umo.endpoint.UMOEndpointURI;
 17  
 import org.mule.umo.endpoint.UMOImmutableEndpoint;
 18  
 import org.mule.util.ClassUtils;
 19  
 import org.mule.util.DateUtils;
 20  
 import org.mule.util.StringMessageUtils;
 21  
 import org.mule.util.StringUtils;
 22  
 
 23  
 import java.util.Date;
 24  
 
 25  0
 public class CoreMessages extends MessageFactory
 26  
 {
 27  2
     private static final String BUNDLE_PATH = getBundlePath("core");
 28  
 
 29  
     public static Message versionNotSet()
 30  
     {
 31  0
         return createMessage(BUNDLE_PATH, 1);
 32  
     }
 33  
 
 34  
     public static Message serverStartedAt(long startDate)
 35  
     {
 36  0
         return createMessage(BUNDLE_PATH, 2, new Date(startDate));
 37  
     }
 38  
 
 39  
     public static Message serverShutdownAt(Date date)
 40  
     {
 41  0
         return createMessage(BUNDLE_PATH, 3, date);
 42  
     }
 43  
 
 44  
     public static Message agentsRunning()
 45  
     {
 46  0
         return createMessage(BUNDLE_PATH, 4);
 47  
     }
 48  
 
 49  
     public static Message notSet()
 50  
     {
 51  0
         return createMessage(BUNDLE_PATH, 5);
 52  
     }
 53  
 
 54  
     public static Message version()
 55  
     {
 56  0
         return createMessage(BUNDLE_PATH, 6);
 57  
     }
 58  
 
 59  
     public static Message shutdownNormally(Date date)
 60  
     {
 61  0
         return createMessage(BUNDLE_PATH, 7, date);
 62  
     }
 63  
 
 64  
     public static Message serverWasUpForDuration(long duration)
 65  
     {
 66  0
         String formattedDuration = DateUtils.getFormattedDuration(duration);
 67  0
         return createMessage(BUNDLE_PATH, 8, formattedDuration);
 68  
     }
 69  
 
 70  
     public static Message configNotFoundUsage()
 71  
     {
 72  0
         return createMessage(BUNDLE_PATH, 9);
 73  
     }
 74  
 
 75  
     public static Message fatalErrorWhileRunning()
 76  
     {
 77  0
         return createMessage(BUNDLE_PATH, 10);
 78  
     }
 79  
 
 80  
     public static Message rootStackTrace()
 81  
     {
 82  0
         return createMessage(BUNDLE_PATH, 11);
 83  
     }
 84  
 
 85  
     public static Message exceptionStackIs()
 86  
     {
 87  0
         return createMessage(BUNDLE_PATH, 12);
 88  
     }
 89  
 
 90  
     public static Message messageIsOfType(Class type)
 91  
     {
 92  26
         return createMessage(BUNDLE_PATH, 18, ClassUtils.getSimpleName(type));
 93  
     }
 94  
 
 95  
     public static Message fatalErrorInShutdown()
 96  
     {
 97  0
         return createMessage(BUNDLE_PATH, 20);
 98  
     }
 99  
 
 100  
     public static Message normalShutdown()
 101  
     {
 102  0
         return createMessage(BUNDLE_PATH, 21);
 103  
     }
 104  
 
 105  
     public static Message none()
 106  
     {
 107  0
         return createMessage(BUNDLE_PATH, 22);
 108  
     }
 109  
 
 110  
     public static Message failedToRouterViaEndpoint(UMOImmutableEndpoint endpoint)
 111  
     {
 112  26
         return createMessage(BUNDLE_PATH, 30, endpoint);
 113  
     }
 114  
 
 115  
     public static Message cannotUseDisposedConnector()
 116  
     {
 117  0
         return createMessage(BUNDLE_PATH, 32);
 118  
     }
 119  
 
 120  
     public static Message connectorCausedError()
 121  
     {
 122  0
         return connectorCausedError(null);
 123  
     }
 124  
 
 125  
     public static Message connectorCausedError(Object connector)
 126  
     {
 127  2
         return createMessage(BUNDLE_PATH, 33, connector);
 128  
     }
 129  
 
 130  
     public static Message endpointIsNullForListener()
 131  
     {
 132  0
         return createMessage(BUNDLE_PATH, 34);
 133  
     }
 134  
 
 135  
     public static Message listenerAlreadyRegistered(UMOEndpointURI endpointUri)
 136  
     {
 137  0
         return createMessage(BUNDLE_PATH, 35, endpointUri);
 138  
     }
 139  
 
 140  
     public static Message objectAlreadyInitialised(String name)
 141  
     {
 142  2
         return createMessage(BUNDLE_PATH, 37, name);
 143  
     }
 144  
 
 145  
     public static Message componentCausedErrorIs(Object component)
 146  
     {
 147  6
         return createMessage(BUNDLE_PATH, 38, component);
 148  
     }
 149  
 
 150  
     public static Message objectFailedToInitialise(String string)
 151  
     {
 152  20
         return createMessage(BUNDLE_PATH, 40, string);
 153  
     }
 154  
 
 155  
     public static Message failedToStop(String string)
 156  
     {
 157  0
         return createMessage(BUNDLE_PATH, 41, string);
 158  
     }
 159  
 
 160  
     public static Message failedToStart(String string)
 161  
     {
 162  10
         return createMessage(BUNDLE_PATH, 42, string);
 163  
     }
 164  
 
 165  
     public static Message proxyPoolTimedOut()
 166  
     {
 167  0
         return createMessage(BUNDLE_PATH, 43);
 168  
     }
 169  
 
 170  
     public static Message failedToGetPooledObject()
 171  
     {
 172  0
         return createMessage(BUNDLE_PATH, 44);
 173  
     }
 174  
 
 175  
     public static Message objectIsNull(String string)
 176  
     {
 177  4
         return createMessage(BUNDLE_PATH, 45, string);
 178  
     }
 179  
 
 180  
     public static Message componentNotRegistered(String name)
 181  
     {
 182  0
         return createMessage(BUNDLE_PATH, 46, name);
 183  
     }
 184  
 
 185  
     public static Message failedtoRegisterOnEndpoint(String name, Object endpointURI)
 186  
     {
 187  0
         return createMessage(BUNDLE_PATH, 47, name, endpointURI);
 188  
     }
 189  
 
 190  
     public static Message failedToUnregister(String name, Object endpointURI)
 191  
     {
 192  0
         return createMessage(BUNDLE_PATH, 48, name, endpointURI);
 193  
     }
 194  
 
 195  
     public static Message endpointIsMalformed(String endpoint)
 196  
     {
 197  2
         return createMessage(BUNDLE_PATH, 51, endpoint);
 198  
     }
 199  
 
 200  
     public static Message transformFailedBeforeFilter()
 201  
     {
 202  0
         return createMessage(BUNDLE_PATH, 52);
 203  
     }
 204  
 
 205  
     public static Message transformUnexpectedType(Class class1, Class returnClass)
 206  
     {
 207  58
         return createMessage(BUNDLE_PATH, 53, ClassUtils.getSimpleName(class1),
 208  
                              ClassUtils.getSimpleName(returnClass));
 209  
     }
 210  
 
 211  
     public static Message transformOnObjectUnsupportedTypeOfEndpoint(String name, Class class1,
 212  
                                                                      UMOImmutableEndpoint endpoint)
 213  
     {
 214  0
         return createMessage(BUNDLE_PATH, 54, name, StringMessageUtils.toString(class1),
 215  
                              (endpoint != null ? endpoint.getEndpointURI() : null));
 216  
     }
 217  
 
 218  
     public static Message transformFailedFrom(Class clazz)
 219  
     {
 220  0
         return createMessage(BUNDLE_PATH, 55, clazz);
 221  
     }
 222  
 
 223  
     public static Message encryptionStrategyNotSet()
 224  
     {
 225  0
         return createMessage(BUNDLE_PATH, 56);
 226  
     }
 227  
 
 228  
     public static Message failedToLoadTransformer(String direction, String transformer)
 229  
     {
 230  0
         return createMessage(BUNDLE_PATH, 57, direction, transformer);
 231  
     }
 232  
 
 233  
     public static Message failedToLoad(String string)
 234  
     {
 235  2
         return createMessage(BUNDLE_PATH, 58, string);
 236  
     }
 237  
 
 238  
     public static Message messageNotSupportedByAdapter(String string, String string2)
 239  
     {
 240  0
         return createMessage(BUNDLE_PATH, 59, string, string2);
 241  
     }
 242  
 
 243  
     public static Message tooManyAcceptableMethodsOnObjectForTypes(Object object, Object types)
 244  
     {
 245  4
         return createMessage(BUNDLE_PATH, 60, StringMessageUtils.toString(object),
 246  
                              StringMessageUtils.toString(types));
 247  
     }
 248  
 
 249  
     public static Message cannotSetPropertyOnObjectWithParamType(String property,
 250  
                                                                  Class class1, Class class2)
 251  
     {
 252  0
         return createMessage(BUNDLE_PATH, 61, property, StringMessageUtils.toString(class1),
 253  
                              StringMessageUtils.toString(class2));
 254  
     }
 255  
 
 256  
     public static Message noComponentForEndpoint()
 257  
     {
 258  0
         return createMessage(BUNDLE_PATH, 64);
 259  
     }
 260  
 
 261  
     public static Message failedToCreate(String string)
 262  
     {
 263  0
         return createMessage(BUNDLE_PATH, 65, string);
 264  
     }
 265  
 
 266  
     public static Message noCorrelationId()
 267  
     {
 268  0
         return createMessage(BUNDLE_PATH, 66);
 269  
     }
 270  
 
 271  
     public static Object failedToDispose(String string)
 272  
     {
 273  0
         return createMessage(BUNDLE_PATH, 67, string);
 274  
     }
 275  
 
 276  
     public static Message failedToInvoke(String string)
 277  
     {
 278  0
         return createMessage(BUNDLE_PATH, 68, string);
 279  
     }
 280  
 
 281  
     public static Message cannotReadPayloadAsBytes(String type)
 282  
     {
 283  0
         return createMessage(BUNDLE_PATH, 69, type);
 284  
     }
 285  
 
 286  
     public static Message cannotReadPayloadAsString(String type)
 287  
     {
 288  0
         return createMessage(BUNDLE_PATH, 70, type);
 289  
     }
 290  
 
 291  
     public static Message routingFailedOnEndpoint(UMOComponent component, UMOImmutableEndpoint endpoint)
 292  
     {
 293  2
         UMOEndpointURI endpointUri = null;
 294  2
         if (endpoint != null)
 295  
         {
 296  0
             endpointUri = endpoint.getEndpointURI();
 297  
         }
 298  2
         return createMessage(BUNDLE_PATH, 72, component.getDescriptor().getName(), endpointUri);
 299  
     }
 300  
 
 301  
     public static Message cannotInstanciateFinder(String serviceFinder)
 302  
     {
 303  0
         return createMessage(BUNDLE_PATH, 73, serviceFinder);
 304  
     }
 305  
 
 306  
     public static Message failedToCreateObjectWith(String string, Object arg)
 307  
     {
 308  0
         return createMessage(BUNDLE_PATH, 74, string, arg);
 309  
     }
 310  
 
 311  
     public static Message objectNotSetInService(Object object, Object service)
 312  
     {
 313  0
         return createMessage(BUNDLE_PATH, 75, object, service);
 314  
     }
 315  
 
 316  
     public static Message objectNotFound(String object)
 317  
     {
 318  78
         return createMessage(BUNDLE_PATH, 76, object);
 319  
     }
 320  
 
 321  
     public static Message transactionMarkedForRollback()
 322  
     {
 323  0
         return createMessage(BUNDLE_PATH, 77);
 324  
     }
 325  
 
 326  
     public static Message transactionCannotBindToNullKey()
 327  
     {
 328  0
         return createMessage(BUNDLE_PATH, 78);
 329  
     }
 330  
 
 331  
     public static Message transactionCannotBindNullResource()
 332  
     {
 333  0
         return createMessage(BUNDLE_PATH, 79);
 334  
     }
 335  
 
 336  
     public static Message transactionSingleResourceOnly()
 337  
     {
 338  0
         return createMessage(BUNDLE_PATH, 80);
 339  
     }
 340  
 
 341  
     public static Message noCurrentEventForTransformer()
 342  
     {
 343  0
         return createMessage(BUNDLE_PATH, 81);
 344  
     }
 345  
 
 346  
     public static Message objectNotRegisteredWithManager(String string)
 347  
     {
 348  0
         return createMessage(BUNDLE_PATH, 82, string);
 349  
     }
 350  
 
 351  
     public static Message failedToSetPropertiesOn(String string)
 352  
     {
 353  0
         return createMessage(BUNDLE_PATH, 83, string);
 354  
     }
 355  
 
 356  
     public static Message failedToCreateConnectorFromUri(UMOEndpointURI uri)
 357  
     {
 358  0
         return createMessage(BUNDLE_PATH, 84, uri);
 359  
     }
 360  
 
 361  
     public static Message initialisationFailure(String string)
 362  
     {
 363  0
         return createMessage(BUNDLE_PATH, 85, string);
 364  
     }
 365  
 
 366  
     public static Message failedToCreateEndpointFromLocation(String string)
 367  
     {
 368  0
         return createMessage(BUNDLE_PATH, 87, string);
 369  
     }
 370  
 
 371  
     public static Message managerAlreadyStarted()
 372  
     {
 373  0
         return createMessage(BUNDLE_PATH, 88);
 374  
     }
 375  
 
 376  
     public static Message noEndpointsForRouter()
 377  
     {
 378  0
         return createMessage(BUNDLE_PATH, 89);
 379  
     }
 380  
 
 381  
     public static Message responseTimedOutWaitingForId(int timeout, Object id)
 382  
     {
 383  0
         return createMessage(BUNDLE_PATH, 90, String.valueOf(timeout), id);
 384  
     }
 385  
 
 386  
     public static Message failedToRecevieWithTimeout(Object endpoint, long timeout)
 387  
     {
 388  0
         return createMessage(BUNDLE_PATH, 93, endpoint, String.valueOf(timeout));
 389  
     }
 390  
 
 391  
     public static Message failedToWriteMessageToStore(Object id, String storeName)
 392  
     {
 393  0
         return createMessage(BUNDLE_PATH, 94, id, storeName);
 394  
     }
 395  
 
 396  
     public static Message failedToReadFromStore(String absolutePath)
 397  
     {
 398  0
         return createMessage(BUNDLE_PATH, 95, absolutePath);
 399  
     }
 400  
 
 401  
     public static Message cannotStartTransaction(String string)
 402  
     {
 403  0
         return createMessage(BUNDLE_PATH, 96, string);
 404  
     }
 405  
 
 406  
     public static Message transactionCommitFailed()
 407  
     {
 408  0
         return createMessage(BUNDLE_PATH, 97);
 409  
     }
 410  
 
 411  
     public static Message transactionRollbackFailed()
 412  
     {
 413  0
         return createMessage(BUNDLE_PATH, 98);
 414  
     }
 415  
 
 416  
     public static Message transactionCannotReadState()
 417  
     {
 418  0
         return createMessage(BUNDLE_PATH, 99);
 419  
     }
 420  
 
 421  
     public static Message transactionResourceAlreadyListedForKey(Object key)
 422  
     {
 423  0
         return createMessage(BUNDLE_PATH, 100, key);
 424  
     }
 425  
 
 426  
     public static Message noOutboundRouterSetOn(String string)
 427  
     {
 428  0
         return createMessage(BUNDLE_PATH, 101, string);
 429  
     }
 430  
 
 431  
     public static Message transactionAvailableButActionIs(String string)
 432  
     {
 433  0
         return createMessage(BUNDLE_PATH, 103, string);
 434  
     }
 435  
 
 436  
     public static Message transactionNotAvailableButActionIs(String string)
 437  
     {
 438  0
         return createMessage(BUNDLE_PATH, 104, string);
 439  
     }
 440  
 
 441  
     public static Message noCatchAllEndpointSet()
 442  
     {
 443  2
         return createMessage(BUNDLE_PATH, 105);
 444  
     }
 445  
 
 446  
     public static Message interruptedQueuingEventFor(Object object)
 447  
     {
 448  0
         return createMessage(BUNDLE_PATH, 106, object);
 449  
     }
 450  
 
 451  
     public static Message transactionCannotUnbind()
 452  
     {
 453  0
         return createMessage(BUNDLE_PATH, 107);
 454  
     }
 455  
 
 456  
     public static Message transactionAlreadyBound()
 457  
     {
 458  2
         return createMessage(BUNDLE_PATH, 108);
 459  
     }
 460  
 
 461  
     public static Message methodWithParamsNotFoundOnObject(String method, Object class1, Class class2)
 462  
     {
 463  4
         return createMessage(BUNDLE_PATH, 109, method, StringMessageUtils.toString(class1),
 464  
                              StringMessageUtils.toString(class2));
 465  
     }
 466  
 
 467  
     public static Message transformFailed(String from, String to)
 468  
     {
 469  0
         return createMessage(BUNDLE_PATH, 110, from, to);
 470  
     }
 471  
 
 472  
     public static Message cryptoFailure()
 473  
     {
 474  0
         return createMessage(BUNDLE_PATH, 112);
 475  
     }
 476  
 
 477  
     public static Message schemeNotCompatibleWithConnector(String scheme, Class expectedClass)
 478  
     {
 479  0
         return createMessage(BUNDLE_PATH, 115, scheme, expectedClass);
 480  
     }
 481  
 
 482  
     public static Message noEntryPointFoundWithArgs(Object object, Object args)
 483  
     {
 484  2
         return createMessage(BUNDLE_PATH, 116, StringMessageUtils.toString(object),
 485  
                              StringMessageUtils.toString(args));
 486  
     }
 487  
 
 488  
     public static Message authNoSecurityProvider(String providerName)
 489  
     {
 490  0
         return createMessage(BUNDLE_PATH, 117, providerName);
 491  
     }
 492  
 
 493  
     public static Message transactionCanOnlyBindToResources(String string)
 494  
     {
 495  0
         return createMessage(BUNDLE_PATH, 120, string);
 496  
     }
 497  
 
 498  
     public static Message cannotLoadFromClasspath(String string)
 499  
     {
 500  0
         return createMessage(BUNDLE_PATH, 122, string);
 501  
     }
 502  
 
 503  
     public static Message failedToReadPayload()
 504  
     {
 505  0
         return createMessage(BUNDLE_PATH, 124);
 506  
     }
 507  
 
 508  
     public static Message endpointNotFound(String endpoint)
 509  
     {
 510  0
         return createMessage(BUNDLE_PATH, 126, endpoint);
 511  
     }
 512  
 
 513  
     public static Message eventProcessingFailedFor(String name)
 514  
     {
 515  0
         return createMessage(BUNDLE_PATH, 127, name);
 516  
     }
 517  
 
 518  
     public static Message failedToDispatchToReplyto(UMOEndpoint endpoint)
 519  
     {
 520  0
         return createMessage(BUNDLE_PATH, 128, endpoint);
 521  
     }
 522  
 
 523  
     public static Message authTypeNotRecognised(String string)
 524  
     {
 525  0
         return createMessage(BUNDLE_PATH, 131, string);
 526  
     }
 527  
 
 528  
     public static Message authSecurityManagerNotSet()
 529  
     {
 530  0
         return createMessage(BUNDLE_PATH, 132);
 531  
     }
 532  
 
 533  
     public static Message authSetButNoContext(String name)
 534  
     {
 535  0
         return createMessage(BUNDLE_PATH, 133, name);
 536  
     }
 537  
 
 538  
     public static Message authDeniedOnEndpoint(UMOEndpointURI endpointURI)
 539  
     {
 540  0
         return createMessage(BUNDLE_PATH, 134, endpointURI);
 541  
     }
 542  
 
 543  
     public static Message authFailedForUser(Object user)
 544  
     {
 545  0
         return createMessage(BUNDLE_PATH, 135, user);
 546  
     }
 547  
 
 548  
     public static Message authEndpointTypeForFilterMustBe(String expected, String actual)
 549  
     {
 550  0
         return createMessage(BUNDLE_PATH, 136, expected, actual);
 551  
     }
 552  
 
 553  
     public static Message transactionManagerAlreadySet()
 554  
     {
 555  0
         return createMessage(BUNDLE_PATH, 140);
 556  
     }
 557  
 
 558  
     public static Message failedToCreateManagerInstance(String className)
 559  
     {
 560  0
         return createMessage(BUNDLE_PATH, 144, className);
 561  
     }
 562  
 
 563  
     public static Message failedToClone(String string)
 564  
     {
 565  0
         return createMessage(BUNDLE_PATH, 145, string);
 566  
     }
 567  
 
 568  
     public static Message exceptionOnConnectorNotExceptionListener(String name)
 569  
     {
 570  0
         return createMessage(BUNDLE_PATH, 146, name);
 571  
     }
 572  
 
 573  
     public static Message uniqueIdNotSupportedByAdapter(String name)
 574  
     {
 575  0
         return createMessage(BUNDLE_PATH, 147, name);
 576  
     }
 577  
 
 578  
     public static Message serverEventManagerNotEnabled()
 579  
     {
 580  0
         return createMessage(BUNDLE_PATH, 150);
 581  
     }
 582  
 
 583  
     public static Message failedToScheduleWork()
 584  
     {
 585  0
         return createMessage(BUNDLE_PATH, 151);
 586  
     }
 587  
 
 588  
     public static Message authNoCredentials()
 589  
     {
 590  0
         return createMessage(BUNDLE_PATH, 152);
 591  
     }
 592  
 
 593  
     public static Message valueIsInvalidFor(String value, String parameter)
 594  
     {
 595  0
         return createMessage(BUNDLE_PATH, 154, value, parameter);
 596  
     }
 597  
 
 598  
     public static Message connectorWithProtocolNotRegistered(String scheme)
 599  
     {
 600  0
         return createMessage(BUNDLE_PATH, 156, scheme);
 601  
     }
 602  
 
 603  
     public static Message propertyIsNotSupportedType(String property, Class expected,
 604  
                                                      Class actual)
 605  
     {
 606  0
         return createMessage(BUNDLE_PATH, 157, property, StringMessageUtils.toString(expected),
 607  
                              StringMessageUtils.toString(actual));
 608  
     }
 609  
 
 610  
     public static Message containerAlreadyRegistered(String name)
 611  
     {
 612  0
         return createMessage(BUNDLE_PATH, 155, name);
 613  
     }
 614  
 
 615  
     public static Message resourceManagerNotStarted()
 616  
     {
 617  0
         return createMessage(BUNDLE_PATH, 161);
 618  
     }
 619  
 
 620  
     public static Message resourceManagerDirty()
 621  
     {
 622  0
         return createMessage(BUNDLE_PATH, 162);
 623  
     }
 624  
 
 625  
     public static Message resourceManagerNotReady()
 626  
     {
 627  0
         return createMessage(BUNDLE_PATH, 163);
 628  
     }
 629  
 
 630  
     public static Message reconnectStrategyFailed(Class strategy, String description)
 631  
     {
 632  0
         return createMessage(BUNDLE_PATH, 164, StringMessageUtils.toString(strategy), description);
 633  
     }
 634  
 
 635  
     public static Message cannotSetObjectOnceItHasBeenSet(String string)
 636  
     {
 637  0
         return createMessage(BUNDLE_PATH, 165, string);
 638  
     }
 639  
 
 640  
     public static Message eventTypeNotRecognised(String string)
 641  
     {
 642  0
         return createMessage(BUNDLE_PATH, 166, string);
 643  
     }
 644  
 
 645  
     public static Message componentIsStopped(String name)
 646  
     {
 647  4
         return createMessage(BUNDLE_PATH, 167, name);
 648  
     }
 649  
 
 650  
     public static Object propertyIsNotSetOnEvent(String property)
 651  
     {
 652  0
         return createMessage(BUNDLE_PATH, 168, property);
 653  
     }
 654  
 
 655  
     public static Message descriptorAlreadyExists(String name)
 656  
     {
 657  2
         return createMessage(BUNDLE_PATH, 171, name);
 658  
     }
 659  
 
 660  
     public static Message failedToInvokeRestService(String service)
 661  
     {
 662  0
         return createMessage(BUNDLE_PATH, 172, service);
 663  
     }
 664  
 
 665  
     public static Message authNoEncryptionStrategy(String strategyName)
 666  
     {
 667  0
         return createMessage(BUNDLE_PATH, 174, strategyName);
 668  
     }
 669  
 
 670  
     public static Message headerMalformedValueIs(String header, String value)
 671  
     {
 672  0
         return createMessage(BUNDLE_PATH, 175, header, value);
 673  
     }
 674  
 
 675  
     public static Message transformOnObjectNotOfSpecifiedType(String name, Object expectedType)
 676  
     {
 677  0
         return createMessage(BUNDLE_PATH, 177, name, expectedType);
 678  
     }
 679  
 
 680  
     public static Message cannotUseTxAndRemoteSync()
 681  
     {
 682  0
         return createMessage(BUNDLE_PATH, 178);
 683  
     }
 684  
 
 685  
     public static Message failedToBuildMessage()
 686  
     {
 687  0
         return createMessage(BUNDLE_PATH, 180);
 688  
     }
 689  
 
 690  
     public static Message propertiesNotSet(String string)
 691  
     {
 692  0
         return createMessage(BUNDLE_PATH, 183, string);
 693  
     }
 694  
 
 695  
     public static Message objectNotOfCorrectType(Class actualClass, Class expectedClass)
 696  
     {
 697  0
         return createMessage(BUNDLE_PATH, 185, StringMessageUtils.toString(actualClass),
 698  
                              StringMessageUtils.toString(expectedClass));
 699  
     }
 700  
 
 701  
     public static Message failedToConvertStringUsingEncoding(String encoding)
 702  
     {
 703  0
         return createMessage(BUNDLE_PATH, 188, encoding);
 704  
     }
 705  
 
 706  
     public static Message propertyHasInvalidValue(String property, Object value)
 707  
     {
 708  0
         return createMessage(BUNDLE_PATH, 189, property, value);
 709  
     }
 710  
 
 711  
     public static Message schemeCannotChangeForRouter(String scheme, String scheme2)
 712  
     {
 713  0
         return createMessage(BUNDLE_PATH, 192, scheme, scheme2);
 714  
     }
 715  
 
 716  
     public static Message days()
 717  
     {
 718  0
         return createMessage(BUNDLE_PATH, 193);
 719  
     }
 720  
 
 721  
     public static Message hours()
 722  
     {
 723  0
         return createMessage(BUNDLE_PATH, 194);
 724  
     }
 725  
 
 726  
     public static Message minutes()
 727  
     {
 728  0
         return createMessage(BUNDLE_PATH, 195);
 729  
     }
 730  
 
 731  
     public static Message seconds()
 732  
     {
 733  0
         return createMessage(BUNDLE_PATH, 196);
 734  
     }
 735  
 
 736  
     public static Message templateCausedMalformedEndpoint(String uri, String newUri)
 737  
     {
 738  0
         return createMessage(BUNDLE_PATH, 197, uri, newUri);
 739  
     }
 740  
 
 741  
     public static Message couldNotDetermineDestinationComponentFromEndpoint(String endpoint)
 742  
     {
 743  0
         return createMessage(BUNDLE_PATH, 198, endpoint);
 744  
     }
 745  
 
 746  
     public static Message sessionValueIsMalformed(String string)
 747  
     {
 748  0
         return createMessage(BUNDLE_PATH, 201, string);
 749  
     }
 750  
 
 751  
     public static Message streamingFailedNoStream()
 752  
     {
 753  0
         return createMessage(BUNDLE_PATH, 205);
 754  
     }
 755  
 
 756  
     public static Message connectorSchemeIncompatibleWithEndpointScheme(Object expected, Object actual)
 757  
     {
 758  0
         return createMessage(BUNDLE_PATH, 206, expected, actual);
 759  
     }
 760  
 
 761  
     public static Message failedToReadAttachment(String string)
 762  
     {
 763  0
         return createMessage(BUNDLE_PATH, 207, string);
 764  
     }
 765  
 
 766  
     public static Message failedToInitSecurityProvider(String providerClass)
 767  
     {
 768  0
         return createMessage(BUNDLE_PATH, 208, providerClass);
 769  
     }
 770  
 
 771  
     public static Message streamingNotSupported(String protocol)
 772  
     {
 773  0
         return createMessage(BUNDLE_PATH, 209, protocol);
 774  
     }
 775  
 
 776  
     public static Message streamingComponentMustHaveOneEndpoint(String name)
 777  
     {
 778  0
         return createMessage(BUNDLE_PATH, 210, name);
 779  
     }
 780  
 
 781  
     public static Message streamingFailedForEndpoint(String string)
 782  
     {
 783  0
         return createMessage(BUNDLE_PATH, 212, string);
 784  
     }
 785  
 
 786  
     public static Message streamingEndpointsDoNotSupportTransformers()
 787  
     {
 788  0
         return createMessage(BUNDLE_PATH, 213);
 789  
     }
 790  
 
 791  
     public static Message streamingEndpointsMustBeUsedWithStreamingModel()
 792  
     {
 793  0
         return createMessage(BUNDLE_PATH, 214);
 794  
     }
 795  
 
 796  
     public static Message tooManyMatchingMethodsOnObjectWhichReturn(Object object, Object returnType)
 797  
     {
 798  0
         return createMessage(BUNDLE_PATH, 216, StringMessageUtils.toString(object),
 799  
                              StringMessageUtils.toString(returnType));
 800  
     }
 801  
 
 802  
     public static Message failedToSetProxyOnService(Object proxy, Class routerClass)
 803  
     {
 804  0
         return createMessage(BUNDLE_PATH, 217, proxy, routerClass);
 805  
     }
 806  
 
 807  
     public static Message mustSetMethodNamesOnBinding()
 808  
     {
 809  0
         return createMessage(BUNDLE_PATH, 218);
 810  
     }
 811  
 
 812  
     public static Message cannotFindBindingForMethod(String name)
 813  
     {
 814  0
         return createMessage(BUNDLE_PATH, 219, name);
 815  
     }
 816  
 
 817  
     public static Message noMatchingMethodsOnObjectReturning(Object object, Class returnType)
 818  
     {
 819  4
         return createMessage(BUNDLE_PATH, 220, StringMessageUtils.toString(object),
 820  
                              StringMessageUtils.toString(returnType));
 821  
     }
 822  
 
 823  
     public static Message moreThanOneConnectorWithProtocol(String protocol)
 824  
     {
 825  0
         return createMessage(BUNDLE_PATH, 221, protocol);
 826  
     }
 827  
 
 828  
     public static Message failedToGetOutputStream()
 829  
     {
 830  0
         return createMessage(BUNDLE_PATH, 223);
 831  
     }
 832  
 
 833  
     public static Message noEntryPointFoundForNoArgsMethod(final Object component, final String methodName)
 834  
     {
 835  0
         return createMessage(BUNDLE_PATH, 224, component, methodName);
 836  
     }
 837  
 
 838  
     public static Message noDelegateClassAndMethodProvidedForNoArgsWrapper()
 839  
     {
 840  6
         return createMessage(BUNDLE_PATH, 225);
 841  
     }
 842  
 
 843  
     public static Message noDelegateClassIfDelegateInstanceSpecified()
 844  
     {
 845  2
         return createMessage(BUNDLE_PATH, 226);
 846  
     }
 847  
 
 848  
     /**
 849  
      * Returns a message that is a product informatin.
 850  
      *
 851  
      * @return message
 852  
      */
 853  
     public static Message productInformation()
 854  
     {
 855  0
         String notset = CoreMessages.notSet().getMessage();
 856  0
         return createMessage(BUNDLE_PATH, 227, StringUtils.defaultString(MuleManifest.getProductDescription(), notset),
 857  
                              StringUtils.defaultString(MuleManifest.getProductVersion(), notset),
 858  
                              StringUtils.defaultString(MuleManifest.getVendorName(), notset) + " " + StringUtils.defaultString(MuleManifest.getVendorUrl(), notset));
 859  
     }
 860  
 
 861  
     public static Message noJtaTransactionAvailable(final Thread callingThread)
 862  
     {
 863  0
         return createMessage(BUNDLE_PATH, 228, StringUtils.defaultString(callingThread.toString()));
 864  
     }
 865  
 
 866  
     public static Message notMuleXaTransaction(Object tx)
 867  
     {
 868  0
         return createMessage(BUNDLE_PATH, 229, tx.getClass());
 869  
     }
 870  
 
 871  
     public static Message noMuleTransactionAvailable()
 872  
     {
 873  0
         return createMessage(BUNDLE_PATH, 230);
 874  
     }
 875  
 
 876  
     public static Message cannotMixSingleAndXATransaction()
 877  
     {
 878  0
         return createMessage(BUNDLE_PATH, 231);
 879  
     }
 880  
 
 881  
 }