View Javadoc

1   /*
2    * $Id: GuiceMessages.java 20321 2010-11-24 15:21:24Z dfeist $
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  package org.mule.module.guice.i18n;
11  
12  import org.mule.config.i18n.Message;
13  import org.mule.config.i18n.MessageFactory;
14  
15  /**
16   * i18n Guice messages
17   */
18  public class GuiceMessages extends MessageFactory
19  {
20      private static final GuiceMessages factory = new GuiceMessages();
21  
22      private static final String BUNDLE_PATH = getBundlePath("guice");
23  
24      public static Message failedToRegisterOBjectWithMule(Class objectType)
25      {
26          return factory.createMessage(BUNDLE_PATH, 1, objectType.getName());
27      }
28  }