Package org.apache.el.util
Class MessageFactory
- java.lang.Object
-
- org.apache.el.util.MessageFactory
-
public final class MessageFactory extends java.lang.ObjectFactory for creating localized EL messages.
-
-
Constructor Summary
Constructors Constructor Description MessageFactory(java.util.ResourceBundle bundle)Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.Stringget(java.lang.String key)Get a localized message.static java.lang.Stringget(java.lang.String key, java.lang.Object... args)Get a localized message with arguments.protected java.lang.StringgetInternal(java.lang.String key)Get a message from the bundle.protected java.lang.StringgetInternal(java.lang.String key, java.lang.Object... args)Get a message from the bundle with arguments.
-
-
-
Method Detail
-
get
public static java.lang.String get(java.lang.String key)
Get a localized message.- Parameters:
key- the message key- Returns:
- the message
-
get
public static java.lang.String get(java.lang.String key, java.lang.Object... args)Get a localized message with arguments.- Parameters:
key- the message keyargs- the arguments- Returns:
- the message
-
getInternal
protected java.lang.String getInternal(java.lang.String key)
Get a message from the bundle.- Parameters:
key- the message key- Returns:
- the message
-
getInternal
protected java.lang.String getInternal(java.lang.String key, java.lang.Object... args)Get a message from the bundle with arguments.- Parameters:
key- the message keyargs- the arguments- Returns:
- the message
-
-