public class DefaultGroovyAwareMessageSource extends MessageSourceDecorator implements GroovyAwareMessageSource
REF_KEY_END, REF_KEY_START| Constructor and Description |
|---|
DefaultGroovyAwareMessageSource(MessageSource delegate) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAt(List<?> keyAndArgs)
Try to resolve the message.
|
String |
getAt(String key)
Try to resolve the message.
|
asResourceBundle, formatMessage, formatMessage, formatMessage, getDelegate, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, resolveMessageValueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasResourceBundle, formatMessage, formatMessage, formatMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, resolveMessageValuepublic DefaultGroovyAwareMessageSource(@Nonnull MessageSource delegate)
@Nonnull public String getAt(@Nonnull String key) throws NoSuchMessageException
GroovyAwareMessageSourcegetAt in interface GroovyAwareMessageSourcekey - Key to lookup, such as 'log4j.appenders.console'NoSuchMessageException - if no message is found@Nonnull public String getAt(@Nonnull List<?> keyAndArgs) throws NoSuchMessageException
GroovyAwareMessageSourcegetAt in interface GroovyAwareMessageSourcekeyAndArgs - Key to lookup, such as 'log4j.appenders.console' and arguments
that will be filled in for params within the message (params look like "{0}" within a
message, but this might differ between implementations), or null if none.NoSuchMessageException - if no message is found