|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.coalevo.foundation.util.DummyMessages
public class DummyMessages
Implements Messages without actual message resolving.
MessageResourceService is not
available.
| Constructor Summary | |
|---|---|
DummyMessages()
|
|
| Method Summary | |
|---|---|
java.lang.String |
get(java.util.Locale l,
java.lang.String key)
Returns the message with the given key and if available Locale. |
java.lang.String |
get(java.util.Locale l,
java.lang.String key,
MessageAttributes attr)
Returns the message with the given key, attributes and Locale. |
java.lang.String |
get(java.util.Locale l,
java.lang.String key,
java.lang.String name,
java.lang.String val)
Convenience method that returns the message with the given key and the specified attribute in the default Locale. |
java.lang.String |
get(java.util.Locale l,
java.lang.String key,
java.lang.String name1,
java.lang.String val1,
java.lang.String name2,
java.lang.String val2)
Convenience method that returns the message with the given key and the specified attributes in the default Locale. |
java.lang.String |
get(java.lang.String key)
Returns the message with the given key and in the default Locale. |
java.lang.String |
get(java.lang.String key,
MessageAttributes attr)
Returns the message with the given key, attributes the default Locale. |
java.lang.String |
get(java.lang.String key,
java.lang.String name,
java.lang.String val)
Convenience method that returns the message with the given key and the specified attribute in the default Locale. |
java.lang.String |
get(java.lang.String key,
java.lang.String name1,
java.lang.String val1,
java.lang.String name2,
java.lang.String val2)
Convenience method that returns the message with the given key and the specified attributes in the default Locale. |
MessageAttributes |
leaseAttributes()
Returns a leased MessageAttributes instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DummyMessages()
| Method Detail |
|---|
public java.lang.String get(java.lang.String key)
Messages
get in interface Messageskey - the message key.
public java.lang.String get(java.lang.String key,
MessageAttributes attr)
MessagesMessages.leaseAttributes(). The will be
automatically recycled after a call to this method,
so your application should not use the reference
any further.
get in interface Messageskey - the message key.attr - the attributes for the message.
Messages.leaseAttributes()
public java.lang.String get(java.lang.String key,
java.lang.String name,
java.lang.String val)
Messages
get in interface Messageskey - the message key.name - an attribute name.val - attribute value.
public java.lang.String get(java.lang.String key,
java.lang.String name1,
java.lang.String val1,
java.lang.String name2,
java.lang.String val2)
Messages
get in interface Messageskey - the message key.name1 - an attribute name.val1 - attribute value.name2 - an attribute name.val2 - attribute value.
public java.lang.String get(java.util.Locale l,
java.lang.String key)
Messages
get in interface Messagesl - the locale.key - the message key.
public java.lang.String get(java.util.Locale l,
java.lang.String key,
MessageAttributes attr)
MessagesMessages.leaseAttributes(). The will be
automatically recycled after a call to this method,
so your application should not use the reference
any further.
get in interface Messagesl - the locale.key - the message key.attr - the attributes for the message.
Messages.leaseAttributes()
public java.lang.String get(java.util.Locale l,
java.lang.String key,
java.lang.String name,
java.lang.String val)
Messages
get in interface Messagesl - the locale.key - the message key.name - an attribute name.val - attribute value.
public java.lang.String get(java.util.Locale l,
java.lang.String key,
java.lang.String name1,
java.lang.String val1,
java.lang.String name2,
java.lang.String val2)
Messages
get in interface Messagesl - the locale.key - the message key.name1 - an attribute name.val1 - attribute value.name2 - an attribute name.val2 - attribute value.
public MessageAttributes leaseAttributes()
MessagesMessageAttributes instance.
This instance should be used immediately and passed to
Messages.get(Locale,String,MessageAttributes), which will
recycle the instance returning it to the originating pool.
leaseAttributes in interface MessagesMessageAttributes instance.
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||