Package org.apache.el.util
Class MessageFactory
java.lang.Object
org.apache.el.util.MessageFactory
Factory for creating localized EL messages.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringGet a localized message.static StringGet a localized message with arguments.protected StringgetInternal(String key) Get a message from the bundle.protected StringgetInternal(String key, Object... args) Get a message from the bundle with arguments.
-
Constructor Details
-
MessageFactory
Constructor.- Parameters:
bundle- the resource bundle
-
-
Method Details
-
get
Get a localized message.- Parameters:
key- the message key- Returns:
- the message
-
get
Get a localized message with arguments.- Parameters:
key- the message keyargs- the arguments- Returns:
- the message
-
getInternal
Get a message from the bundle.- Parameters:
key- the message key- Returns:
- the message
-
getInternal
Get a message from the bundle with arguments.- Parameters:
key- the message keyargs- the arguments- Returns:
- the message
-