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, resolveMessageValue
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asResourceBundle, formatMessage, formatMessage, formatMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, getMessage, resolveMessageValue
public DefaultGroovyAwareMessageSource(@Nonnull MessageSource delegate)
@Nonnull public String getAt(@Nonnull String key) throws NoSuchMessageException
GroovyAwareMessageSource
getAt
in interface GroovyAwareMessageSource
key
- Key to lookup, such as 'log4j.appenders.console'NoSuchMessageException
- if no message is found@Nonnull public String getAt(@Nonnull List<?> keyAndArgs) throws NoSuchMessageException
GroovyAwareMessageSource
getAt
in interface GroovyAwareMessageSource
keyAndArgs
- 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