|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tomcat.maven.common.messages.DefaultMessagesProvider
@Component(role=MessagesProvider.class) public class DefaultMessagesProvider
Constructor Summary | |
---|---|
DefaultMessagesProvider()
|
Method Summary | |
---|---|
String |
getMessage(String key)
Gets the message for the given key from this packages resource bundle. |
String |
getMessage(String key,
Object param)
Gets the message for the given key from this packages resource bundle and formats it with the given parameter. |
String |
getMessage(String key,
Object[] params)
Gets the message for the given key from this packages resource bundle and formats it with the given parameters. |
String |
getMessage(String key,
Object param1,
Object param2)
Gets the message for the given key from this packages resource bundle and formats it with the given parameters. |
ResourceBundle |
getResourceBundle()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultMessagesProvider()
Method Detail |
---|
public ResourceBundle getResourceBundle()
public String getMessage(String key)
getMessage
in interface MessagesProvider
key
- the key for the required message
public String getMessage(String key, Object param)
getMessage
in interface MessagesProvider
key
- the key for the required messageparam
- the parameter to be used to format the message with
public String getMessage(String key, Object param1, Object param2)
getMessage
in interface MessagesProvider
key
- the key for the required messageparam1
- the first parameter to be used to format the message withparam2
- the second parameter to be used to format the message with
public String getMessage(String key, Object[] params)
getMessage
in interface MessagesProvider
key
- the key for the required messageparams
- the parameters to be used to format the message with
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |