| java.lang.Object org.mule.config.i18n.MessageFactory
All known Subclasses: org.mule.transport.jdbc.i18n.JdbcMessages, org.mule.transport.vm.i18n.VMMessages, org.mule.transport.quartz.i18n.QuartzMessages, org.mule.transport.tcp.i18n.TcpMessages, org.mule.example.stockquote.LocaleMessage, org.mule.transport.ejb.i18n.EjbMessages, org.mule.transport.cxf.i18n.CxfMessages, org.mule.transport.udp.i18n.UdpMessages, org.mule.config.i18n.CoreMessages, org.mule.transport.stdio.i18n.StdioMessages, org.mule.transport.soap.axis.i18n.AxisMessages, org.mule.transport.rmi.i18n.RmiMessages, org.mule.transport.email.i18n.EmailMessages, org.mule.transport.file.i18n.FileMessages, org.mule.transport.xmpp.i18n.XmppMessages, org.mule.example.loanbroker.LocaleMessage, org.mule.module.xml.i18n.XmlMessages, org.mule.module.acegi.i18n.AcegiMessages, org.mule.example.hello.LocaleMessage, org.mule.example.errorhandler.LocaleMessage, org.mule.module.client.i18n.ClientMessages, org.mule.config.builders.i18n.BuildersMessages, org.mule.transport.http.i18n.ServletMessages, org.mule.transport.jms.i18n.JmsMessages, org.mule.transport.http.i18n.HttpMessages, org.mule.transport.soap.i18n.SoapMessages, org.mule.module.spring.i18n.SpringMessages, org.mule.module.management.i18n.ManagementMessages, org.mule.module.pgp.i18n.PGPMessages, org.mule.module.jca.i18n.JcaMessages,
MessageFactory | abstract public class MessageFactory extends Object (Code) | | |
Method Summary | |
protected static Message | createMessage(String bundlePath, int code, Object arg) Factory method to create a new
Message instance that is filled with the formatted
message with id code from the resource bundle bundlePath . | protected static Message | createMessage(String bundlePath, int code, Object arg1, Object arg2) Factory method to create a new
Message instance that is filled with the formatted
message with id code from the resource bundle bundlePath . | protected static Message | createMessage(String bundlePath, int code, Object arg1, Object arg2, Object arg3) Factory method to create a new
Message instance that is filled with the formatted
message with id code from the resource bundle bundlePath . | protected static Message | createMessage(String bundlePath, int code, Object[] arguments) Factory method to create a new
Message instance that is filled with the formatted
message with id code from the resource bundle bundlePath . | protected static Message | createMessage(String bundlePath, int code) Factory method to create a new
Message instance that is filled with the formatted
message with id code from the resource bundle bundlePath . | public static Message | createStaticMessage(String message) Factory method to create a
Message instance that is not read from a resource bundle. | protected static String | getBundlePath(String bundleName) Computes the bundle's full path
(META-INF/services/org/mule/i18n/<bundleName>-messages.properties ) from
bundleName . | protected static String | getString(String bundlePath, int code) Factory method to read the message with code code from the resource bundle. | protected static String | getString(String bundlePath, int code, Object arg) Factory method to read the message with code code from the resource bundle. | protected static String | getString(String bundlePath, int code, Object arg1, Object arg2) Factory method to read the message with code code from the resource bundle. | protected static String | getString(String bundlePath, int code, Object[] args) |
createMessage | protected static Message createMessage(String bundlePath, int code, Object arg)(Code) | | Factory method to create a new
Message instance that is filled with the formatted
message with id code from the resource bundle bundlePath .
Parameters: bundlePath - complete path to the resource bundle for lookup Parameters: code - numeric code of the message Parameters: arg - See Also: getBundlePath() |
createMessage | protected static Message createMessage(String bundlePath, int code, Object arg1, Object arg2)(Code) | | Factory method to create a new
Message instance that is filled with the formatted
message with id code from the resource bundle bundlePath .
Parameters: bundlePath - complete path to the resource bundle for lookup Parameters: code - numeric code of the message Parameters: arg1 - Parameters: arg2 - See Also: getBundlePath() |
createMessage | protected static Message createMessage(String bundlePath, int code, Object arg1, Object arg2, Object arg3)(Code) | | Factory method to create a new
Message instance that is filled with the formatted
message with id code from the resource bundle bundlePath .
Parameters: bundlePath - complete path to the resource bundle for lookup Parameters: code - numeric code of the message Parameters: arg1 - Parameters: arg2 - Parameters: arg3 - See Also: getBundlePath() |
createMessage | protected static Message createMessage(String bundlePath, int code, Object[] arguments)(Code) | | Factory method to create a new
Message instance that is filled with the formatted
message with id code from the resource bundle bundlePath .
Attention: do not confuse this method with
createMessage(String, int, Object) .
Parameters: bundlePath - complete path to the resource bundle for lookup Parameters: code - numeric code of the message Parameters: arguments - See Also: getBundlePath() |
createMessage | protected static Message createMessage(String bundlePath, int code)(Code) | | Factory method to create a new
Message instance that is filled with the formatted
message with id code from the resource bundle bundlePath .
Parameters: bundlePath - complete path to the resource bundle for lookup Parameters: code - numeric code of the message |
createStaticMessage | public static Message createStaticMessage(String message)(Code) | | Factory method to create a
Message instance that is not read from a resource bundle.
Parameters: message - Message's message text a Messsage instance that has an error code of -1 and no arguments. |
getBundlePath | protected static String getBundlePath(String bundleName)(Code) | | Computes the bundle's full path
(META-INF/services/org/mule/i18n/<bundleName>-messages.properties ) from
bundleName .
Parameters: bundleName - Name of the bundle without the "messages" suffix and withoutfile extension. |
getString | protected static String getString(String bundlePath, int code)(Code) | | Factory method to read the message with code code from the resource bundle.
Parameters: bundlePath - complete path to the resource bundle for lookup Parameters: code - numeric code of the message formatted error message as String |
getString | protected static String getString(String bundlePath, int code, Object arg)(Code) | | Factory method to read the message with code code from the resource bundle.
Parameters: bundlePath - complete path to the resource bundle for lookup Parameters: code - numeric code of the message Parameters: arg - formatted error message as String |
getString | protected static String getString(String bundlePath, int code, Object arg1, Object arg2)(Code) | | Factory method to read the message with code code from the resource bundle.
Parameters: bundlePath - complete path to the resource bundle for lookup Parameters: code - numeric code of the message Parameters: arg1 - Parameters: arg2 - formatted error message as String |
|
|